mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Address late review of velbus (#58463)
This commit is contained in:
parent
fd45a07677
commit
339d041925
@ -59,7 +59,7 @@ class VelbusClimate(VelbusEntity, ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def preset_modes(self) -> list[str] | None:
|
def preset_modes(self) -> list[str] | None:
|
||||||
"""Return a list of all possible presets."""
|
"""Return a list of all possible presets."""
|
||||||
return list(PRESET_MODES.keys())
|
return list(PRESET_MODES)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def preset_mode(self) -> str | None:
|
def preset_mode(self) -> str | None:
|
||||||
@ -78,7 +78,7 @@ class VelbusClimate(VelbusEntity, ClimateEntity):
|
|||||||
if (temp := kwargs.get(ATTR_TEMPERATURE)) is None:
|
if (temp := kwargs.get(ATTR_TEMPERATURE)) is None:
|
||||||
return
|
return
|
||||||
await self._channel.set_temp(temp)
|
await self._channel.set_temp(temp)
|
||||||
self.schedule_update_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
async def async_set_preset_mode(self, preset_mode: str) -> None:
|
async def async_set_preset_mode(self, preset_mode: str) -> None:
|
||||||
"""Set the new preset mode."""
|
"""Set the new preset mode."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user