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

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