Skip to content

Commit ac87957

Browse files
committed
Don't show cooling_active when no cooling present
1 parent d73911b commit ac87957

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plugwise/smile.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def _get_device_data(self, dev_id: str) -> dict[str, Any]:
209209

210210
# Adam: indicate active heating/cooling operation-mode
211211
# Actual ongoing heating/cooling is shown via heating_state/cooling_state
212-
if details["class"] == "heater_central":
212+
if details["class"] == "heater_central" and self._cooling_present:
213213
device_data["cooling_active"] = self.cooling_active
214214

215215
# Switching groups data
@@ -482,7 +482,11 @@ async def async_update(self) -> dict[str, Any]:
482482
)
483483

484484
# Anna: update cooling_active to it's final value after all entities have been updated
485-
if not self._smile_legacy and self.smile_name == "Anna":
485+
if (
486+
not self._smile_legacy
487+
and self.smile_name == "Anna"
488+
and self._cooling_present
489+
):
486490
self.gw_devices[self._heater_id]["cooling_active"] = self.cooling_active
487491

488492
return [self.gw_data, self.gw_devices]

0 commit comments

Comments
 (0)