Skip to content

Commit

Permalink
fix: resolve failed to unload error
Browse files Browse the repository at this point in the history
thanks @tateu for the resolution.

#1204 (comment)
  • Loading branch information
fuatakgun authored Sep 16, 2024
1 parent bc3cbcf commit 0eb8273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/eufy_security/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
"""unload active entities"""
_LOGGER.debug(f"async_unload_entry 1")
coordinator = hass.data[DOMAIN][COORDINATOR]
unloaded = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
unloaded = await hass.config_entries.async_unload_platforms(config_entry, PLATFORMS)

if unloaded:
await coordinator.disconnect()
Expand Down

0 comments on commit 0eb8273

Please sign in to comment.