INNER CODE UNIT · Python
async_update_options
jseidl/magic-areas · custom_components/magic_areas/__init__.py:135
async def async_update_options(hass: HomeAssistant, config_entry: ConfigEntry) -> None:
"""Update options."""
_LOGGER.debug(
"Detected options change for entry %s, reloading", config_entry.entry_id
)
await hass.config_entries.async_reload(config_entry.entry_id)
async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool:
"""Unload a config entry."""
if MODULE_DATA not in hass.data:
_LOGGER.warning(
"Module data object for Magic Areas not found, possibly already removed."
)
return False
data = hass.data[MODULE_DATA]