Explorar o código

Remove rssi call on the BLEDevice (#366)

J. Nick Koston hai 2 días
pai
achega
bf4139e037
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      switchbot/devices/device.py

+ 1 - 1
switchbot/devices/device.py

@@ -295,7 +295,7 @@ class SwitchbotBaseDevice:
         """Return RSSI of device."""
         if self._sb_adv_data:
             return self._sb_adv_data.rssi
-        return self._device.rssi
+        return -127
 
     async def _ensure_connected(self):
         """Ensure connection to device is established."""