Skip to content

Commit 9842624

Browse files
committed
Ruffed
1 parent 63667ca commit 9842624

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugwise/helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,10 @@ def _cleanup_data(self, data: DeviceData) -> None:
10051005
Clean up the data dict.
10061006
"""
10071007
# Fix for Adam + Anna: heating_state also present under Anna, remove
1008-
if "temperature" in data["sensors"] and "heating_state" in data["binary_sensors"]:
1008+
if (
1009+
"temperature" in data["sensors"]
1010+
and "heating_state" in data["binary_sensors"]
1011+
):
10091012
data["binary_sensors"].pop("heating_state", None)
10101013

10111014
# Don't show cooling-related when no cooling present,

0 commit comments

Comments
 (0)