Skip to content

Commit

Permalink
fix ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilP committed May 13, 2024
1 parent 02ad973 commit fd1f19d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/deltadore_tydom/ha_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ class HaClimate(ClimateEntity, HAEntity):
HVACMode.COOL: "COOLING",
HVACMode.HEAT: "NORMAL",
HVACMode.OFF: "STOP",
HVACMode.FAN_ONLY: "VENTILATING",
HVACMode.FAN_ONLY: "VENTILATING",
HVACMode.DRY: "DRYING"
}
DICT_MODES_DD_TO_HA = {
Expand Down Expand Up @@ -660,7 +660,7 @@ def __init__(self, device: TydomBoiler, hass) -> None:
HVACMode.OFF,
HVACMode.AUTO,
]

if ("comfortMode" in self._device._metadata and "COOLING" in self._device._metadata["comfortMode"]["enum_values"]) or ("hvacMode" in self._device._metadata and "COOLING" in self._device._metadata["hvacMode"]["enum_values"]):
self._attr_hvac_modes.append(HVACMode.COOL)

Expand Down

0 comments on commit fd1f19d

Please sign in to comment.