Skip to content

Commit 2a2619b

Browse files
committed
Changed missed
1 parent 0cfd3e7 commit 2a2619b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _device_data_adam(
188188
"""
189189
# Indicate heating_state based on valves being open in case of city-provided heating
190190
if (
191-
self.smile_name == ADAM
191+
self.smile(ADAM)
192192
and device.get("dev_class") == "heater_central"
193193
and self._on_off_device
194194
and self._heating_valves() is not None
@@ -663,7 +663,7 @@ async def set_schedule_state(
663663
template = (
664664
'<template tag="zone_preset_based_on_time_and_presence_with_override" />'
665665
)
666-
if self.smile_name != ADAM:
666+
if not self.smile(ADAM):
667667
locator = f'.//*[@id="{schedule_rule_id}"]/template'
668668
template_id = self._domain_objects.find(locator).attrib["id"]
669669
template = f'<template id="{template_id}" />'
@@ -716,7 +716,7 @@ async def set_temperature(self, loc_id: str, items: dict[str, float]) -> None:
716716
if "setpoint" in items:
717717
setpoint = items["setpoint"]
718718

719-
if self._cooling_present and self.smile_name != ADAM:
719+
if self._cooling_present and not self.smile(ADAM):
720720
if "setpoint_high" not in items:
721721
raise PlugwiseError(
722722
"Plugwise: failed setting temperature: no valid input provided"

0 commit comments

Comments
 (0)