diff --git a/homeassistant/components/openweathermap/const.py b/homeassistant/components/openweathermap/const.py index 36080a8e6f6..c1ca96188d8 100644 --- a/homeassistant/components/openweathermap/const.py +++ b/homeassistant/components/openweathermap/const.py @@ -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}, } diff --git a/homeassistant/components/openweathermap/weather_update_coordinator.py b/homeassistant/components/openweathermap/weather_update_coordinator.py index 20cc71da725..4518e3b6bda 100644 --- a/homeassistant/components/openweathermap/weather_update_coordinator.py +++ b/homeassistant/components/openweathermap/weather_update_coordinator.py @@ -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")