Skip to content

Commit

Permalink
Allows unload when unsupported devices vesync (#127153)
Browse files Browse the repository at this point in the history
Allows unload when unsupported devices
  • Loading branch information
cdnninja authored Oct 1, 2024
1 parent c5ebd53 commit f02f0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/vesync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f02f0ea

Please sign in to comment.