@@ -262,9 +262,9 @@ def hvac_modes(self) -> list[HVACMode]:
262262 if self .coordinator .api .cooling_present :
263263 if REGULATION_MODES in self ._gateway_data :
264264 selected = self ._gateway_data .get (SELECT_REGULATION_MODE )
265- if selected == HVACAction .COOLING :
265+ if selected == HVACAction .COOLING . value :
266266 hvac_modes .append (HVACMode .COOL )
267- if selected == HVACAction .HEATING :
267+ if selected == HVACAction .HEATING . value :
268268 hvac_modes .append (HVACMode .HEAT )
269269 else :
270270 hvac_modes .append (HVACMode .HEAT_COOL )
@@ -276,10 +276,11 @@ def hvac_modes(self) -> list[HVACMode]:
276276 @property
277277 def hvac_action (self ) -> HVACAction : # pw-beta add to Core
278278 """Return the current running hvac operation if supported."""
279- # Keep track of the previous havc_action mode. When no cooling available, _previous_action_mode is always heating
279+ # Keep track of the previous hvac_action mode.
280+ # When no cooling available, _previous_action_mode is always heating
280281 if (
281282 REGULATION_MODES in self ._gateway_data
282- and HVACAction .COOLING in self ._gateway_data [REGULATION_MODES ]
283+ and HVACAction .COOLING . value in self ._gateway_data [REGULATION_MODES ]
283284 ):
284285 mode = self ._gateway_data [SELECT_REGULATION_MODE ]
285286 if mode in (HVACAction .COOLING .value , HVACAction .HEATING .value ):
0 commit comments