Skip to content
Snippets Groups Projects
Commit 8dfddaac authored by jkerdreu's avatar jkerdreu
Browse files

Added round for temperature

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1760 b32b6428-25c9-4566-ad07-03861ab6144f
parent 07d617dc
Branches
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ class GW:
def _update(self):
place = self.cfg['config']['place']
weather = self.owm.weather_at_place(place).get_weather()
self.attr['temperature'].value = weather.get_temperature(unit='celsius')['temp']
self.attr['temperature'].value = round(weather.get_temperature(unit='celsius')['temp'],1)
self.attr['pressure'].value = weather.get_pressure()['press']
self.attr['humidity'].value = weather.get_humidity()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment