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:
@@ -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,
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user