mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix misuse of cast for Shelly Valve (#64181)
This commit is contained in:
parent
2ee2626e8b
commit
a1e7459dc5
@ -145,9 +145,10 @@ class BlockSleepingClimate(
|
|||||||
|
|
||||||
if self.block is not None and self.device_block is not None:
|
if self.block is not None and self.device_block is not None:
|
||||||
self._unique_id = f"{self.wrapper.mac}-{self.block.description}"
|
self._unique_id = f"{self.wrapper.mac}-{self.block.description}"
|
||||||
|
assert self.block.channel
|
||||||
self._preset_modes = [
|
self._preset_modes = [
|
||||||
PRESET_NONE,
|
PRESET_NONE,
|
||||||
*wrapper.device.settings["thermostats"][cast(int, self.block.channel)][
|
*wrapper.device.settings["thermostats"][int(self.block.channel)][
|
||||||
"schedule_profile_names"
|
"schedule_profile_names"
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user