From ab778ee5a11ef4ca82b5a7704ed0e29b9db2c2a5 Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 8 Nov 2012 19:53:41 +0100 Subject: [PATCH] Add a new field --- weboob/capabilities/gauge.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/weboob/capabilities/gauge.py b/weboob/capabilities/gauge.py index 689a35cb..4af9b07a 100644 --- a/weboob/capabilities/gauge.py +++ b/weboob/capabilities/gauge.py @@ -55,6 +55,7 @@ class GaugeSensor(CapBaseObject): forecast = StringField('Forecast') lastvalue = Field('Last value', GaugeMeasure) history = Field('Value history', list) # lastvalue not included + gaugeid = StringField('Id of the gauge') class ICapGauge(IBaseCap): @@ -89,11 +90,11 @@ class ICapGauge(IBaseCap): """ raise NotImplementedError() - def get_last_measure(self, id): + def get_last_measures(self, id): """ - Get last measure of the gauge sensor. + Get last measures of the gauge. - :param id: ID of the gauge sensor. + :param id: ID of the gauge. :type id: str :rtype: :class:`GaugeMeasure` """