mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Fix missing RainMachine restrictions switches (#81673)
This commit is contained in:
parent
496f78bae5
commit
d62bac9c59
@ -241,6 +241,7 @@ async def async_setup_entry(
|
|||||||
|
|
||||||
# Add switches to control restrictions:
|
# Add switches to control restrictions:
|
||||||
for description in RESTRICTIONS_SWITCH_DESCRIPTIONS:
|
for description in RESTRICTIONS_SWITCH_DESCRIPTIONS:
|
||||||
|
coordinator = data.coordinators[description.api_category]
|
||||||
if not key_exists(coordinator.data, description.data_key):
|
if not key_exists(coordinator.data, description.data_key):
|
||||||
continue
|
continue
|
||||||
entities.append(RainMachineRestrictionSwitch(entry, data, description))
|
entities.append(RainMachineRestrictionSwitch(entry, data, description))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user