Round output of wind speed and humidity (#2535)

pull/2509/head
Fabian Affolter 2016-07-16 20:05:29 +02:00 committed by Paulus Schoutsen
parent 7cff107c17
commit 95d033f1af
1 changed files with 2 additions and 2 deletions

View File

@ -127,9 +127,9 @@ class OpenWeatherMapSensor(Entity):
else:
self._state = round(data.get_temperature()['temp'], 1)
elif self.type == 'wind_speed':
self._state = data.get_wind()['speed']
self._state = round(data.get_wind()['speed'], 1)
elif self.type == 'humidity':
self._state = data.get_humidity()
self._state = round(data.get_humidity(), 1)
elif self.type == 'pressure':
self._state = round(data.get_pressure()['press'], 0)
elif self.type == 'clouds':