diff --git a/homeassistant/components/weather/openweathermap.py b/homeassistant/components/weather/openweathermap.py index f8f7e2f3747..b029b4d44bb 100644 --- a/homeassistant/components/weather/openweathermap.py +++ b/homeassistant/components/weather/openweathermap.py @@ -98,7 +98,7 @@ class OpenWeatherMapWeather(WeatherEntity): @property def temperature(self): """Return the temperature.""" - return self.data.get_temperature('celsius')['temp'] + return self.data.get_temperature('celsius').get('temp') @property def temperature_unit(self): @@ -108,7 +108,7 @@ class OpenWeatherMapWeather(WeatherEntity): @property def pressure(self): """Return the pressure.""" - return self.data.get_pressure()['press'] + return self.data.get_pressure().get('press') @property def humidity(self): @@ -118,12 +118,12 @@ class OpenWeatherMapWeather(WeatherEntity): @property def wind_speed(self): """Return the wind speed.""" - return self.data.get_wind()['speed'] + return self.data.get_wind().get('speed') @property def wind_bearing(self): """Return the wind bearing.""" - return self.data.get_wind()['deg'] + return self.data.get_wind().get('deg') @property def attribution(self):