Update IPMA weather component (#38697)
* long overdue mismatch * missing updated tests
This commit is contained in:
1 parent
8555e17eb9
commit
39843319e2
2 files changed
+8
-8
No files matched your search
@@ -5,7 +5,7 @@ from homeassistant.components import weather
|
||||
from homeassistant.components.weather import (
|
||||
ATTR_FORECAST,
|
||||
ATTR_FORECAST_CONDITION,
|
||||
ATTR_FORECAST_PRECIPITATION,
|
||||
ATTR_FORECAST_PRECIPITATION_PROBABILITY,
|
||||
ATTR_FORECAST_TEMP,
|
||||
ATTR_FORECAST_TEMP_LOW,
|
||||
ATTR_FORECAST_TIME,
|
||||
@@ -192,7 +192,7 @@ async def test_daily_forecast(hass):
|
||||
assert forecast.get(ATTR_FORECAST_CONDITION) == "rainy"
|
||||
assert forecast.get(ATTR_FORECAST_TEMP) == 16.2
|
||||
assert forecast.get(ATTR_FORECAST_TEMP_LOW) == 10.6
|
||||
assert forecast.get(ATTR_FORECAST_PRECIPITATION) == "100.0"
|
||||
assert forecast.get(ATTR_FORECAST_PRECIPITATION_PROBABILITY) == "100.0"
|
||||
assert forecast.get(ATTR_FORECAST_WIND_SPEED) == "10"
|
||||
assert forecast.get(ATTR_FORECAST_WIND_BEARING) == "S"
|
||||
|
||||
@@ -216,6 +216,6 @@ async def test_hourly_forecast(hass):
|
||||
forecast = state.attributes.get(ATTR_FORECAST)[0]
|
||||
assert forecast.get(ATTR_FORECAST_CONDITION) == "rainy"
|
||||
assert forecast.get(ATTR_FORECAST_TEMP) == 7.7
|
||||
assert forecast.get(ATTR_FORECAST_PRECIPITATION) == "80.0"
|
||||
assert forecast.get(ATTR_FORECAST_PRECIPITATION_PROBABILITY) == 80.0
|
||||
assert forecast.get(ATTR_FORECAST_WIND_SPEED) == "32.7"
|
||||
assert forecast.get(ATTR_FORECAST_WIND_BEARING) == "S"
|
||||
Reference in new issue
Block a user