Fix profile name update for Shelly Valve (#67778)
This commit is contained in:
parent
99300570f1
commit
d65b2b37dc
1 changed files with 10 additions and 0 deletions
|
@ -317,4 +317,14 @@ class BlockSleepingClimate(
|
|||
|
||||
if self.device_block and self.block:
|
||||
_LOGGER.debug("Entity %s attached to blocks", self.name)
|
||||
|
||||
assert self.block.channel
|
||||
|
||||
self._preset_modes = [
|
||||
PRESET_NONE,
|
||||
*self.wrapper.device.settings["thermostats"][int(self.block.channel)][
|
||||
"schedule_profile_names"
|
||||
],
|
||||
]
|
||||
|
||||
self.async_write_ha_state()
|
||||
|
|
Loading…
Add table
Reference in a new issue