Skip to content

Commit

Permalink
remove update listener on entry unload to avoid multiple listeners (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmeli authored Feb 5, 2022
1 parent 907ef6e commit b698c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/integration_blueprint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
hass.config_entries.async_forward_entry_setup(entry, platform)
)

entry.add_update_listener(async_reload_entry)
entry.async_on_unload(entry.add_update_listener(async_reload_entry))
return True


Expand Down

0 comments on commit b698c06

Please sign in to comment.