Skip to content

Commit

Permalink
Fix bug in unloading RainMachine options listener (#44359)
Browse files Browse the repository at this point in the history
* Fix bug in unloading RainMachine options listener

* Order
  • Loading branch information
bachya authored and frenck committed Dec 30, 2020
1 parent 0cac5b7 commit f76211d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homeassistant/components/rainmachine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ async def unpause_watering(call: ServiceCall):
]:
hass.services.async_register(DOMAIN, service, method, schema=schema)

hass.data[DOMAIN][DATA_LISTENER] = entry.add_update_listener(async_reload_entry)
hass.data[DOMAIN][DATA_LISTENER][entry.entry_id] = entry.add_update_listener(
async_reload_entry
)

return True

Expand Down

0 comments on commit f76211d

Please sign in to comment.