mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
Fix missing RainMachine restrictions switches (#81673)
This commit is contained in:
committed by
Franck Nijhof
parent
2684a6e8ed
commit
11013bd780
@@ -237,6 +237,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))
|
||||
|
Reference in New Issue
Block a user