Browse Source

fix: report rssi when device is on the edge of range (#87)

J. Nick Koston 1 year ago
parent
commit
2c98806e98
1 changed files with 2 additions and 1 deletions
  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"