custom_components/nea_sg_weather/weather.py
async def async_setup_entry(
    hass: HomeAssistant,
    config_entry: ConfigEntry,
    async_add_entities: AddEntitiesCallback,
) -> None:
    """Add a weather entity from a config_entry."""
    coordinator = hass.data[DOMAIN][config_entry.entry_id]

    async_add_entities(
        [
            NeaWeather(coordinator, config_entry.data),
        ]
    )
Add a weather entity from a config_entry.
Add a weather entity from a config_entry.
Add a weather entity from a config_entry .
async def async_setup_entry(
    hass: HomeAssistant,
    config_entry: ConfigEntry,
    async_add_entities: AddEntitiesCallback,
) -> None:
    coordinator = hass.data[DOMAIN][config_entry.entry_id]
    async_add_entities(
        [
            NeaWeather(coordinator, config_entry.data),
        ]
    )
async def async_setup_entry ( hass : HomeAssistant , config_entry : ConfigEntry , async_add_entities : AddEntitiesCallback , ) -> None : coordinator = hass . data [ DOMAIN ] [ config_entry . entry_id ] async_add_entities ( [ NeaWeather ( coordinator , config_entry . data ) , ] )
Add a weather entity from a config_entry.
Add a weather entity from a config_entry .
"""Add a weather entity from a config_entry."""
hass
HomeAssistant
config_entry
ConfigEntry
async_add_entities
AddEntitiesCallback