1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Add humidity to weather forecast (#95064)

* allow humidty in forecast

* Add tests

* float

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
This commit is contained in:
Arjan
2023-06-23 00:22:07 +02:00
committed by GitHub
parent e5afff7f98
commit 29ef925d73
3 changed files with 33 additions and 0 deletions
@@ -6,6 +6,7 @@ from __future__ import annotations
from homeassistant.components.weather import (
ATTR_FORECAST_CLOUD_COVERAGE,
ATTR_FORECAST_HUMIDITY,
ATTR_FORECAST_NATIVE_APPARENT_TEMP,
ATTR_FORECAST_NATIVE_DEW_POINT,
ATTR_FORECAST_NATIVE_PRECIPITATION,
@@ -223,6 +224,7 @@ class MockWeatherMockForecast(MockWeather):
ATTR_FORECAST_NATIVE_PRECIPITATION: self._values.get(
"native_precipitation"
),
ATTR_FORECAST_HUMIDITY: self.humidity,
}
]