custom_components/nea_sg_weather/__init__.py
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool:
    """Set up Met as config entry."""
    coordinator = NeaWeatherDataUpdateCoordinator(hass, config_entry)
    await coordinator.async_config_entry_first_refresh()

    hass.data.setdefault(DOMAIN, {})[config_entry.entry_id] = coordinator

    _platforms = get_platforms(config_entry)["platforms"]
    hass.config_entries.async_setup_platforms(config_entry, _platforms)

    return True
Set up Met as config entry.
Set up Met as config entry.
Set up Met as config entry .
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool:
    coordinator = NeaWeatherDataUpdateCoordinator(hass, config_entry)
    await coordinator.async_config_entry_first_refresh()
    hass.data.setdefault(DOMAIN, {})[config_entry.entry_id] = coordinator
    _platforms = get_platforms(config_entry)["platforms"]
    hass.config_entries.async_setup_platforms(config_entry, _platforms)
    return True
async def async_setup_entry ( hass : HomeAssistant , config_entry : ConfigEntry ) -> bool : coordinator = NeaWeatherDataUpdateCoordinator ( hass , config_entry ) await coordinator . async_config_entry_first_refresh ( ) hass . data . setdefault ( DOMAIN , { } ) [ config_entry . entry_id ] = coordinator _platforms = get_platforms ( config_entry ) [ "platforms" ] hass . config_entries . async_setup_platforms ( config_entry , _platforms ) return True
Set up Met as config entry.
Set up Met as config entry .
"""Set up Met as config entry."""
hass
HomeAssistant
config_entry
ConfigEntry