mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
fix BLE stop error for disconnected Shelly devices (#104457)
This commit is contained in:
parent
2515dbeee1
commit
e161bb9e41
@ -584,7 +584,7 @@ class ShellyRpcCoordinator(ShellyCoordinatorBase[RpcDevice]):
|
||||
ble_scanner_mode = self.entry.options.get(
|
||||
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)
|
||||
return
|
||||
if AwesomeVersion(self.device.version) < BLE_MIN_VERSION:
|
||||
|
Loading…
x
Reference in New Issue
Block a user