parent
3bd0c7188c
commit
69c2818c56
1 changed files with 3 additions and 1 deletions
|
@ -217,7 +217,9 @@ class MetWeather(CoordinatorEntity, WeatherEntity):
|
|||
if not set(met_item).issuperset(required_keys):
|
||||
continue
|
||||
ha_item = {
|
||||
k: met_item[v] for k, v in FORECAST_MAP.items() if met_item.get(v)
|
||||
k: met_item[v]
|
||||
for k, v in FORECAST_MAP.items()
|
||||
if met_item.get(v) is not None
|
||||
}
|
||||
if ha_item.get(ATTR_FORECAST_CONDITION):
|
||||
ha_item[ATTR_FORECAST_CONDITION] = format_condition(
|
||||
|
|
Loading…
Add table
Reference in a new issue