@@ -44,6 +44,7 @@ class SmileAPI(SmileData):
4444
4545 def __init__ (
4646 self ,
47+ _cooling_present : bool ,
4748 _elga : bool ,
4849 _is_thermostat : bool ,
4950 _last_active : dict [str , str | None ],
@@ -53,7 +54,6 @@ def __init__(
5354 _request : Callable [..., Awaitable [Any ]],
5455 _schedule_old_states : dict [str , dict [str , str ]],
5556 _smile_props : SmileProps ,
56- cooling_present : bool ,
5757 smile_hostname : str | None ,
5858 smile_hw_version : str | None ,
5959 smile_mac_address : str | None ,
@@ -65,6 +65,7 @@ def __init__(
6565 ) -> None :
6666 """Set the constructor for this class."""
6767 self ._cooling_enabled = False
68+ self ._cooling_present = _cooling_present
6869 self ._elga = _elga
6970 self ._gateway_id : str = NONE
7071 self ._heater_id : str = NONE
@@ -76,7 +77,6 @@ def __init__(
7677 self ._request = _request
7778 self ._schedule_old_states = _schedule_old_states
7879 self ._smile_props = _smile_props
79- self .cooling_present = cooling_present
8080 self .smile_hostname = smile_hostname
8181 self .smile_hw_version = smile_hw_version
8282 self .smile_mac_address = smile_mac_address
@@ -430,7 +430,7 @@ async def set_temperature(self, loc_id: str, items: dict[str, float]) -> None:
430430 if "setpoint" in items :
431431 setpoint = items ["setpoint" ]
432432
433- if self .smile (ANNA ) and self .cooling_present :
433+ if self .smile (ANNA ) and self ._cooling_present :
434434 if "setpoint_high" not in items :
435435 raise PlugwiseError (
436436 "Plugwise: failed setting temperature: no valid input provided"
0 commit comments