mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Unregister EcoWitt webhook at unload (#78388)
This commit is contained in:
parent
be34fdc344
commit
0e7c81288f
@ -44,6 +44,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
|
||||
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Unload a config entry."""
|
||||
webhook.async_unregister(hass, entry.data[CONF_WEBHOOK_ID])
|
||||
|
||||
if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
|
||||
hass.data[DOMAIN].pop(entry.entry_id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user