Преглед на файлове

fix: report rssi when device is on the edge of range

J. Nick Koston преди 1 година
родител
ревизия
e2f97ec0c8
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      switchbot/devices/device.py

+ 2 - 1
switchbot/devices/device.py

@@ -127,8 +127,9 @@ class SwitchbotDevice:
                     return await self._send_command_locked(key, command)
                 except BleakNotFoundError:
                     _LOGGER.error(
-                        "%s: device not found or no longer in range; Try restarting Bluetooth",
+                        "%s: device not found, no longer in range, or poor RSSI: %s",
                         self.name,
+                        self.rssi,
                         exc_info=True,
                     )
                     return b"\x00"