mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Add Openweathermap cloud coverage forecast (#50961)
This commit is contained in:
parent
4a64f7a696
commit
9f04c7ea23
@ -111,6 +111,7 @@ FORECAST_MONITORED_CONDITIONS = [
|
||||
ATTR_FORECAST_TIME,
|
||||
ATTR_FORECAST_WIND_BEARING,
|
||||
ATTR_FORECAST_WIND_SPEED,
|
||||
ATTR_API_CLOUDS,
|
||||
]
|
||||
LANGUAGES = [
|
||||
"af",
|
||||
@ -270,4 +271,5 @@ FORECAST_SENSOR_TYPES = {
|
||||
SENSOR_NAME: "Wind speed",
|
||||
SENSOR_UNIT: SPEED_METERS_PER_SECOND,
|
||||
},
|
||||
ATTR_API_CLOUDS: {SENSOR_NAME: "Cloud coverage", SENSOR_UNIT: PERCENTAGE},
|
||||
}
|
||||
|
@ -167,6 +167,7 @@ class WeatherUpdateCoordinator(DataUpdateCoordinator):
|
||||
ATTR_FORECAST_CONDITION: self._get_condition(
|
||||
entry.weather_code, entry.reference_time("unix")
|
||||
),
|
||||
ATTR_API_CLOUDS: entry.clouds,
|
||||
}
|
||||
|
||||
temperature_dict = entry.temperature("celsius")
|
||||
|
Loading…
x
Reference in New Issue
Block a user