Skip to content

Commit 564c8be

Browse files
committed
Remove bool() casting
1 parent a57b78c commit 564c8be

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
@@ -976,15 +976,15 @@ def _process_c_heating_state(self, data: DeviceData) -> None:
976976
# Anna + OnOff heater: use central_heating_state to show heating_state
977977
# Solution for Core issue #81839
978978
if self.smile_name == "Smile Anna":
979-
data["heating_state"] = bool(data["c_heating_state"])
979+
data["heating_state"] = data["c_heating_state"]
980980

981981
if self.smile_name == "Adam":
982982
data["heating_state"] = False
983983
# Adam + OnOff cooling: use central_heating_state to show heating/cooling_state
984984
if self._cooling_enabled:
985-
data["cooling_state"] = bool(data["c_heating_state"])
985+
data["cooling_state"] = data["c_heating_state"]
986986
else:
987-
data["heating_state"] = bool(data["c_heating_state"])
987+
data["heating_state"] = data["c_heating_state"]
988988

989989
def _get_appliance_data(self, d_id: str) -> DeviceData:
990990
"""

0 commit comments

Comments
 (0)