INNER CODE UNIT · Python

async_reload_entry

3dg1luk43/ha_washdata · custom_components/ha_washdata/__init__.py:1390

async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
    """Reload config entry - update settings without interrupting running cycles."""
    manager = hass.data[DOMAIN].get(entry.entry_id)
    if manager:
        # Update configuration without interrupting detector
        await manager.async_reload_config(entry)
        # Options changes (e.g. linked device) reload in place without
        # recreating entities, so apply the device link explicitly here.
        _apply_device_link(hass, entry)
    else:
        # Full reload if manager not found
        await async_unload_entry(hass, entry)
        await async_setup_entry(hass, entry)


async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
    """Unload a config entry."""
    if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…