Allows unload when unsupported devices vesync (#127153)

Allows unload when unsupported devices
pull/126782/head
cdnninja 2024-10-01 04:16:06 -06:00 committed by Franck Nijhof
parent 6f5eac3143
commit 1e0164a96a
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -137,6 +137,6 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload a config entry."""
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
if unload_ok:
hass.data[DOMAIN].pop(entry.entry_id)
hass.data.pop(DOMAIN)
return unload_ok