Skip to content

Commit

Permalink
fix: initialize default hvac and fan mode for climate
Browse files Browse the repository at this point in the history
- it caused an error on HA 2024.4 without initializer
  • Loading branch information
rxwen committed May 3, 2024
1 parent 0273be9 commit f7e320c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/terncy/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ async def async_setup_entry(

class TerncyClimate(TerncyEntity, ClimateEntity):
_attr_fan_modes: list[str] | None = [FAN_LOW, FAN_MEDIUM, FAN_HIGH]
_attr_hvac_mode = HVACMode.OFF
_attr_fan_mode = FAN_LOW
_attr_hvac_modes: list[HVACMode] = [
HVACMode.OFF,
HVACMode.COOL,
Expand Down

0 comments on commit f7e320c

Please sign in to comment.