Fix misuse of cast for Shelly Valve (#64181)
This commit is contained in:
parent
2ee2626e8b
commit
a1e7459dc5
1 changed files with 2 additions and 1 deletions
|
@ -145,9 +145,10 @@ class BlockSleepingClimate(
|
|||
|
||||
if self.block is not None and self.device_block is not None:
|
||||
self._unique_id = f"{self.wrapper.mac}-{self.block.description}"
|
||||
assert self.block.channel
|
||||
self._preset_modes = [
|
||||
PRESET_NONE,
|
||||
*wrapper.device.settings["thermostats"][cast(int, self.block.channel)][
|
||||
*wrapper.device.settings["thermostats"][int(self.block.channel)][
|
||||
"schedule_profile_names"
|
||||
],
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue