mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
fixed timestamp problem in firefox (#12073)
This commit is contained in:
parent
ebfb380449
commit
4cb1f93019
@ -138,7 +138,7 @@ class OpenWeatherMapWeather(WeatherEntity):
|
|||||||
def forecast(self):
|
def forecast(self):
|
||||||
"""Return the forecast array."""
|
"""Return the forecast array."""
|
||||||
return [{
|
return [{
|
||||||
ATTR_FORECAST_TIME: entry.get_reference_time('iso'),
|
ATTR_FORECAST_TIME: entry.get_reference_time('unix') * 1000,
|
||||||
ATTR_FORECAST_TEMP: entry.get_temperature('celsius').get('temp')}
|
ATTR_FORECAST_TEMP: entry.get_temperature('celsius').get('temp')}
|
||||||
for entry in self.forecast_data.get_weathers()]
|
for entry in self.forecast_data.get_weathers()]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user