fixed timestamp problem in firefox (#12073)

This commit is contained in:
escoand
2018-01-31 11:26:35 +01:00
committed by Fabian Affolter
parent ebfb380449
commit 4cb1f93019

View File

@@ -138,7 +138,7 @@ class OpenWeatherMapWeather(WeatherEntity):
def forecast(self):
"""Return the forecast array."""
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')}
for entry in self.forecast_data.get_weathers()]