async def async_options_updated(hass: HomeAssistant, entry: ConfigEntry): """Triggered by config entry options updates.""" await handle_log_level(hass, entry) _LOGGER.info(f"async_options_updated, Entry: {entry.as_dict()} ") name = entry.data.get(CONF_NAME) ha = get_ha(hass, name) if ha is not None: await ha.async_update_entry(entry)
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry): """Unload a config entry.""" name = entry.data.get(CONF_NAME) ha = get_ha(hass, name) if ha is not None: await ha.async_remove() clear_ha(hass, name) return True