Skip to content

Commit

Permalink
Fix missing RainMachine restrictions switches (home-assistant#81673)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored and frenck committed Nov 8, 2022
1 parent 2684a6e commit 11013bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/rainmachine/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 11013bd

Please sign in to comment.