Change representation of Gauges objects
This commit is contained in:
parent
a04ac33d65
commit
3daf7af5a9
1 changed files with 6 additions and 0 deletions
|
|
@ -51,6 +51,12 @@ class GaugeMeasure(CapBaseObject):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
CapBaseObject.__init__(self, None)
|
CapBaseObject.__init__(self, None)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
if self.level:
|
||||||
|
return "<GaugeMeasure level=%f alarm=%s>" % (self.level, self.alarm)
|
||||||
|
else:
|
||||||
|
return "<GaugeMeasure NotAvailable>"
|
||||||
|
|
||||||
|
|
||||||
class GaugeSensor(CapBaseObject):
|
class GaugeSensor(CapBaseObject):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue