Ignore decimal point

This commit is contained in:
Erik Johnson 2016-09-19 17:38:19 -05:00
parent d798a8c3d8
commit bc429c965d

View File

@ -248,7 +248,7 @@ class Wunderground(WeatherBackend):
self.data['city'] = _find('city', response['observation_location'])
self.data['condition'] = _find('weather')
self.data['observation_time'] = observation_time
self.data['current_temp'] = _find('temp_' + temp_unit)
self.data['current_temp'] = _find('temp_' + temp_unit).split('.')[0]
self.data['low_temp'] = low_temp
self.data['high_temp'] = high_temp
self.data['temp_unit'] = '°' + temp_unit.upper()