Skip to content

Commit

Permalink
fix!: Fix race condition during reload that caused wedging in 2024.6.0b6
Browse files Browse the repository at this point in the history
  • Loading branch information
agittins committed Jun 4, 2024
1 parent 60b9a5a commit 8a2bd44
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions custom_components/bermuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,4 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Reload config entry."""
try:
await async_unload_entry(hass, entry)
except ValueError:
_LOGGER.warning(
"Exception trying to unload entry, but will continue with setup anyway"
)

await async_setup_entry(hass, entry)
await hass.config_entries.async_reload(entry.entry_id)

0 comments on commit 8a2bd44

Please sign in to comment.