Unload linky config entry (#27831)

This commit is contained in:
Quentame authored and Paulus Schoutsen committed 2019-10-17 17:22:16 -07:00
1 parent 3e7fcc7575
commit dcdcfdd376
1 file changed
+8 -2
+8 -2
View File
@@ -47,9 +47,15 @@ async def async_setup(hass, config):
async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
"""Set up Linky sensors."""
hass.async_create_task(
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