mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
fix BLE stop error for disconnected Shelly devices (#104457)
This commit is contained in:
@@ -584,7 +584,7 @@ class ShellyRpcCoordinator(ShellyCoordinatorBase[RpcDevice]):
|
|||||||
ble_scanner_mode = self.entry.options.get(
|
ble_scanner_mode = self.entry.options.get(
|
||||||
CONF_BLE_SCANNER_MODE, BLEScannerMode.DISABLED
|
CONF_BLE_SCANNER_MODE, BLEScannerMode.DISABLED
|
||||||
)
|
)
|
||||||
if ble_scanner_mode == BLEScannerMode.DISABLED:
|
if ble_scanner_mode == BLEScannerMode.DISABLED and self.connected:
|
||||||
await async_stop_scanner(self.device)
|
await async_stop_scanner(self.device)
|
||||||
return
|
return
|
||||||
if AwesomeVersion(self.device.version) < BLE_MIN_VERSION:
|
if AwesomeVersion(self.device.version) < BLE_MIN_VERSION:
|
||||||
|
Reference in New Issue
Block a user