Skip to content

Commit 03bc698

Browse files
authored
husqvarna_automower_ble: Log errors if the mower isn't pairable (home-assistant#151768)
Signed-off-by: Alistair Francis <[email protected]>
1 parent 0c1dc73 commit 03bc698

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

homeassistant/components/husqvarna_automower_ble/config_flow.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ def _is_supported(discovery_info: BluetoothServiceInfo):
6262
LOGGER.debug("Unsupported device: %s (%s)", manufacturer_data, discovery_info)
6363
return False
6464

65+
if not manufacturer_data.pairable:
66+
LOGGER.error(
67+
"The mower does not appear to be pairable. "
68+
"Ensure the mower is in pairing mode before continuing. "
69+
"If the mower isn't pariable you will receive authentication "
70+
"errors and be unable to connect"
71+
)
72+
6573
LOGGER.debug("Supported device: %s", manufacturer_data)
6674
return True
6775

0 commit comments

Comments
 (0)