Correct weather entities forecast time (#47565)
This commit is contained in:
parent
d85d1a65a7
commit
d3bd2378ba
4 changed files with 11 additions and 6 deletions
|
@ -51,8 +51,9 @@ async def test_aemet_weather(hass):
|
|||
assert forecast.get(ATTR_FORECAST_PRECIPITATION_PROBABILITY) == 30
|
||||
assert forecast.get(ATTR_FORECAST_TEMP) == 4
|
||||
assert forecast.get(ATTR_FORECAST_TEMP_LOW) == -4
|
||||
assert forecast.get(ATTR_FORECAST_TIME) == dt_util.parse_datetime(
|
||||
"2021-01-10 00:00:00+00:00"
|
||||
assert (
|
||||
forecast.get(ATTR_FORECAST_TIME)
|
||||
== dt_util.parse_datetime("2021-01-10 00:00:00+00:00").isoformat()
|
||||
)
|
||||
assert forecast.get(ATTR_FORECAST_WIND_BEARING) == 45.0
|
||||
assert forecast.get(ATTR_FORECAST_WIND_SPEED) == 20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue