Skip to content

Commit 63667ca

Browse files
committed
Fix and improve logic
1 parent 34ffb6a commit 63667ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ 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["binary_sensors"]:
1008+
if "temperature" in data["sensors"] and "heating_state" in data["binary_sensors"]:
10091009
data["binary_sensors"].pop("heating_state", None)
10101010

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

0 commit comments

Comments
 (0)