From bd0d1d3eff79af5b2f109590bc53a3841f24bee0 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Mon, 2 Dec 2013 20:29:42 +0100 Subject: [PATCH] [Bug #1318] fix htmltable display for wetboobs forecast command --- weboob/capabilities/weather.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weboob/capabilities/weather.py b/weboob/capabilities/weather.py index 582e9eaa..90422817 100644 --- a/weboob/capabilities/weather.py +++ b/weboob/capabilities/weather.py @@ -55,6 +55,10 @@ class Temperature(CapBaseObject): else: return u'%s°C' % int(round((self.value - 32.0) * 5.0 / 9.0)) + def __repr__(self): + if self.value and self.unit: + return u'%s %s' % (self.value, self.unit) + class Forecast(CapBaseObject): """