From 4cb1f9301983975c49c3f5d1b04e35f4bfb5f9fe Mon Sep 17 00:00:00 2001 From: escoand Date: Wed, 31 Jan 2018 11:26:35 +0100 Subject: [PATCH] fixed timestamp problem in firefox (#12073) --- homeassistant/components/weather/openweathermap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/weather/openweathermap.py b/homeassistant/components/weather/openweathermap.py index 479831d713e..408b6968588 100644 --- a/homeassistant/components/weather/openweathermap.py +++ b/homeassistant/components/weather/openweathermap.py @@ -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()]