Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pail23 committed Jun 28, 2024
1 parent ea5e2d9 commit c68e370
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions custom_components/stiebel_eltron_isg/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def target_temperature(self) -> float | None:
TEMPERATURE_KEY_MAP[self.entity_description.key][1],
)

def set_temperature(self, **kwargs) -> None:
async def async_set_temperature(self, **kwargs) -> None:
"""Set new target temperature."""
value = kwargs["temperature"]
if self.coordinator.data.get(OPERATION_MODE) == ECO_MODE:
Expand Down Expand Up @@ -257,7 +257,7 @@ def hvac_mode(self) -> HVACMode | None:
"""Return current operation ie. heat, cool, idle."""
return WPM_TO_HA_HVAC.get(self.coordinator.data.get(OPERATION_MODE))

def set_hvac_mode(self, hvac_mode: HVACMode) -> None:
async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None:
"""Set new operation mode."""
new_mode = HA_TO_WPM_HVAC.get(hvac_mode)
await self.coordinator.set_data(OPERATION_MODE, new_mode)
Expand All @@ -267,7 +267,7 @@ def preset_mode(self) -> str | None:
"""Return current preset mode."""
return WPM_TO_HA_PRESET.get(self.coordinator.data.get(OPERATION_MODE))

def set_preset_mode(self, preset_mode):
async def async_set_preset_mode(self, preset_mode):
"""Set new target preset mode."""
new_mode = HA_TO_WPM_PRESET.get(preset_mode)
await self.coordinator.set_data(OPERATION_MODE, new_mode)
Expand Down Expand Up @@ -299,7 +299,7 @@ def hvac_mode(self) -> HVACMode | None:
"""Return current operation ie. heat, cool, idle."""
return LWZ_TO_HA_HVAC.get(self.coordinator.data.get(OPERATION_MODE))

def set_hvac_mode(self, hvac_mode: HVACMode) -> None:
async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None:
"""Set new operation mode."""
new_mode = HA_TO_LWZ_HVAC.get(hvac_mode)
await self.coordinator.set_data(OPERATION_MODE, new_mode)
Expand All @@ -309,7 +309,7 @@ def preset_mode(self) -> str | None:
"""Return current preset mode."""
return LWZ_TO_HA_PRESET.get(self.coordinator.data.get(OPERATION_MODE))

def set_preset_mode(self, preset_mode):
async def async_set_preset_mode(self, preset_mode):
"""Set new target preset mode."""
new_mode = HA_TO_LWZ_PRESET.get(preset_mode)
await self.coordinator.set_data(OPERATION_MODE, new_mode)
Expand All @@ -321,7 +321,7 @@ def fan_mode(self) -> str | None:
return LWZ_TO_HA_FAN.get(self.coordinator.data.get(FAN_LEVEL_NIGHT))
return LWZ_TO_HA_FAN.get(self.coordinator.data.get(FAN_LEVEL_DAY))

def set_fan_mode(self, fan_mode: str) -> None:
async def async_set_fan_mode(self, fan_mode: str) -> None:
"""Set new target fan mode."""
new_mode = HA_TO_LWZ_FAN.get(fan_mode)
if self.coordinator.data.get(OPERATION_MODE) == ECO_MODE:
Expand Down

0 comments on commit c68e370

Please sign in to comment.