implement reload service

This commit is contained in:
Mathieu Broillet 2023-12-29 11:06:48 +01:00
parent 99ca6d9d0d
commit 536feac30a
Signed by: mathieu
GPG Key ID: C0E9E0E95AF03319

View File

@ -67,3 +67,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
) )
return True return True
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload a config entry."""
return await hass.config_entries.async_forward_entry_unload(
entry, "switch"
)