Skip to content

Commit 33f097e

Browse files
authored
Fix black and isort from plug merge (#147)
1 parent bd614c3 commit 33f097e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

switchbot/adv_parsers/plug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ def process_woplugmini(data: bytes, mfr_data: bytes | None) -> dict[str, bool |
1010
"switchMode": True,
1111
"isOn": mfr_data[7] == 0x80,
1212
"wifi_rssi": -mfr_data[9],
13-
"power": ( ( ( mfr_data[10] << 8 ) + mfr_data[11] ) & 0x7fff ) / 10 # W
13+
"power": (((mfr_data[10] << 8) + mfr_data[11]) & 0x7FFF) / 10, # W
1414
}

0 commit comments

Comments
 (0)