mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
parent
3bd0c7188c
commit
69c2818c56
@ -217,7 +217,9 @@ class MetWeather(CoordinatorEntity, WeatherEntity):
|
|||||||
if not set(met_item).issuperset(required_keys):
|
if not set(met_item).issuperset(required_keys):
|
||||||
continue
|
continue
|
||||||
ha_item = {
|
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):
|
if ha_item.get(ATTR_FORECAST_CONDITION):
|
||||||
ha_item[ATTR_FORECAST_CONDITION] = format_condition(
|
ha_item[ATTR_FORECAST_CONDITION] = format_condition(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user