Fix bug in unloading RainMachine options listener (#44359)

* Fix bug in unloading RainMachine options listener

* Order
pull/44642/head
Aaron Bach 2020-12-18 12:28:18 -07:00 committed by Franck Nijhof
parent 0cac5b7cb3
commit f76211d58a
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 3 additions and 1 deletions

View File

@ -275,7 +275,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
]:
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