Skip to content

Commit a16c19c

Browse files
committed
Fix modulation_level to 100
1 parent 7cc5b2a commit a16c19c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,9 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
863863

864864
# Create updated cooling_state based on cooling_state = on and modulation = 1.0
865865
if "cooling_state" in data:
866-
data["cooling_state"] = data["cooling_state"] and data[
867-
"modulation_level"
868-
] == float(1)
866+
data["cooling_state"] = (
867+
data["cooling_state"] and data["modulation_level"] == 100
868+
)
869869

870870
return data
871871

0 commit comments

Comments
 (0)