mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
datetime must be a string (#47809)
This commit is contained in:
parent
d129b8e1e1
commit
fd5916e067
@ -201,7 +201,7 @@ class BrWeather(WeatherEntity):
|
|||||||
# keys understood by the weather component:
|
# keys understood by the weather component:
|
||||||
condcode = data_in.get(CONDITION, []).get(CONDCODE)
|
condcode = data_in.get(CONDITION, []).get(CONDCODE)
|
||||||
data_out = {
|
data_out = {
|
||||||
ATTR_FORECAST_TIME: data_in.get(DATETIME),
|
ATTR_FORECAST_TIME: data_in.get(DATETIME).isoformat(),
|
||||||
ATTR_FORECAST_CONDITION: cond[condcode],
|
ATTR_FORECAST_CONDITION: cond[condcode],
|
||||||
ATTR_FORECAST_TEMP_LOW: data_in.get(MIN_TEMP),
|
ATTR_FORECAST_TEMP_LOW: data_in.get(MIN_TEMP),
|
||||||
ATTR_FORECAST_TEMP: data_in.get(MAX_TEMP),
|
ATTR_FORECAST_TEMP: data_in.get(MAX_TEMP),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user