mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Unload linky config entry (#27831)
This commit is contained in:
parent
3e7fcc7575
commit
dcdcfdd376
@ -47,9 +47,15 @@ async def async_setup(hass, config):
|
|||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
|
async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
|
||||||
"""Set up Linky sensors."""
|
"""Set up Linky sensors."""
|
||||||
|
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
hass.config_entries.async_forward_entry_setup(entry, "sensor")
|
hass.config_entries.async_forward_entry_setup(entry, "sensor")
|
||||||
)
|
)
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
async def async_unload_entry(hass: HomeAssistantType, entry: ConfigEntry):
|
||||||
|
"""Unload Linky sensors."""
|
||||||
|
hass.async_create_task(
|
||||||
|
hass.config_entries.async_forward_entry_unload(entry, "sensor")
|
||||||
|
)
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user