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): """