Skip to content

Commit 7a727d4

Browse files
committed
Apply suggestion
1 parent b888ac8 commit 7a727d4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

common/src/main/kotlin/io/homeassistant/companion/android/common/bluetooth/ble/IBeaconMonitor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class IBeaconMonitor {
9494
private fun sendUpdate(tmp: List<IBeacon>) {
9595
beacons = tmp
9696
sensorManager.updateBeaconMonitoringSensor()
97-
sensorManager.requestBluetoothSensorUpdate()
97+
sensorManager.sendBluetoothSensorUpdate()
9898
}
9999

100100
fun setUUIDFilter(uuidFilter: List<String>, uuidFilterExclude: Boolean) {

common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/DeviceCommands.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,6 @@ suspend fun commandBleTransmitter(
187187
)
188188
}
189189
bluetoothSensorManager.requestSensorUpdate()
190-
bluetoothSensorManager.requestBluetoothSensorUpdate()
190+
bluetoothSensorManager.sendBluetoothSensorUpdate()
191191
return true
192192
}

common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/BluetoothSensorManager.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ class BluetoothSensorManager @Inject constructor(
244244
SensorSettingType.TOGGLE,
245245
),
246246
)
247-
requestBluetoothSensorUpdate()
247+
sendBluetoothSensorUpdate()
248248
}
249249

250250
/**
251-
* Updates and syncs only this manager's Bluetooth sensors, without touching the other managers.
251+
* Send Bluetooth sensors update, without touching the other managers.
252252
* Used after a beacon or BLE transmitter change; runs fire-and-forget on the manager's scope.
253253
*/
254-
fun requestBluetoothSensorUpdate() {
254+
fun sendBluetoothSensorUpdate() {
255255
ioScope.launch {
256256
sensorUpdater.get().updateSensors(
257257
intent = null,

0 commit comments

Comments
 (0)