mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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:
|
||||
for description in RESTRICTIONS_SWITCH_DESCRIPTIONS:
|
||||
coordinator = data.coordinators[description.api_category]
|
||||
if not key_exists(coordinator.data, description.data_key):
|
||||
continue
|
||||
entities.append(RainMachineRestrictionSwitch(entry, data, description))
|
||||
|
Loading…
x
Reference in New Issue
Block a user