@@ -21,11+21,6 @@ class ServicePosition(Converter, Poll, object):
self.showHours = 'ShowHours' in args
self.showNoSeconds = 'ShowNoSeconds' in args
self.showHours = 'ShowHours' in args
self.showNoSeconds = 'ShowNoSeconds' in args
- if self.detailed:
- self.poll_interval = 100
- else:
- self.poll_interval = 500
-
if type == "Length":
self.type = self.TYPE_LENGTH
elif type == "Position":
if type == "Length":
self.type = self.TYPE_LENGTH
elif type == "Position":
@@ -37,7+32,14 @@ class ServicePosition(Converter, Poll, object):
else:
raise ElementError("type must be {Length|Position|Remaining|Gauge} with optional arguments {Negate|Detailed|ShowHours|ShowNoSeconds} for ServicePosition converter")
else:
raise ElementError("type must be {Length|Position|Remaining|Gauge} with optional arguments {Negate|Detailed|ShowHours|ShowNoSeconds} for ServicePosition converter")