async def async_setup_entry(hass, config_entry, async_add_entities):
    'Set up OpenWeatherMap weather entity based on a config entry.'
    domain_data = hass.data[DOMAIN][config_entry.entry_id]
    name = domain_data[ENTRY_NAME]
    weather_coordinator = domain_data[ENTRY_WEATHER_COORDINATOR]
    unique_id = f'{config_entry.unique_id}'
    owm_weather = OpenWeatherMapWeather(name, unique_id, weather_coordinator)
    async_add_entities([owm_weather], False)
Set up OpenWeatherMap weather entity based on a config entry.
async def async_setup_entry(hass, config_entry, async_add_entities):
    
    domain_data = hass.data[DOMAIN][config_entry.entry_id]
    name = domain_data[ENTRY_NAME]
    weather_coordinator = domain_data[ENTRY_WEATHER_COORDINATOR]
    unique_id = f'{config_entry.unique_id}'
    owm_weather = OpenWeatherMapWeather(name, unique_id, weather_coordinator)
    async_add_entities([owm_weather], False)