Skip to content

Commit

Permalink
fix: Resolve infinite loop on config reload in 2024.5
Browse files Browse the repository at this point in the history
- Only showed up once on 2024.5.x, submitting new config caused infinite loop due to the listener not being un-subscribed when entry was unloaded.
  • Loading branch information
agittins committed May 9, 2024
1 parent 5215139 commit e8a0ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/bermuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

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 e8a0ba3

Please sign in to comment.