mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 01:25:23 +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:
|
# 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))
|
||||||
|
Reference in New Issue
Block a user