Skip to content

Commit bf4139e

Browse files
authored
Remove rssi call on the BLEDevice (#366)
1 parent 02174ed commit bf4139e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

switchbot/devices/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def rssi(self) -> int:
295295
"""Return RSSI of device."""
296296
if self._sb_adv_data:
297297
return self._sb_adv_data.rssi
298-
return self._device.rssi
298+
return -127
299299

300300
async def _ensure_connected(self):
301301
"""Ensure connection to device is established."""

0 commit comments

Comments
 (0)