def list(self): yield super(Moat,self) dev = devices.get(self.dev,None) if dev: yield ("device",dev) else: # vanished yield ("id",dev)
def list(self): def _simul(x): yield ("interval",x[1]) yield ("current",x[0]) yield ("value",x[3]) yield super(OWFSpoller,self) yield ("bus",self.bus) yield ("path",self.path) yield ("interval",humandelta(self.freq)) if self.time_start: yield ("last start",humandelta(now()-self.time_start)) if self.time_len: yield ("last duration",humandelta(self.time_len)) for id in self.seen: dev = devices.get(id,id) yield ("alarm",dev) for id in self.seen_new: yield ("alarm new",id) if self.last_error: yield ("last error",self.last_error) for x in self.simul: yield ("simultaneous",x[2],_simul(x))
def list(self): def _simul(x): yield ("interval", x[1]) yield ("current", x[0]) yield ("value", x[3]) yield super(OWFSpoller, self) yield ("bus", self.bus) yield ("path", self.path) yield ("interval", humandelta(self.freq)) if self.time_start: yield ("last start", humandelta(now() - self.time_start)) if self.time_len: yield ("last duration", humandelta(self.time_len)) for id in self.seen: dev = devices.get(id, id) yield ("alarm", dev) for id in self.seen_new: yield ("alarm new", id) if self.last_error: yield ("last error", self.last_error) for x in self.simul: yield ("simultaneous", x[2], _simul(x))