Skip to content

Commit 9f921db

Browse files
authored
fix: wifi rssi incorrect on plugs (should be negative) (#56)
1 parent b8c023e commit 9f921db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

switchbot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _process_woplugmini(data: bytes, mfr_data: bytes | None) -> dict[str, bool |
142142
return {
143143
"switchMode": True,
144144
"isOn": mfr_data[7] == 0x80,
145-
"wifi_rssi": mfr_data[9],
145+
"wifi_rssi": -mfr_data[9],
146146
}
147147

148148

0 commit comments

Comments
 (0)