Mercurial > code > home > repos > homeauto
diff service/arduinoNode/devices.py @ 1685:6b80a6c58907
minor changes to several services
author | drewp@bigasterisk.com |
---|---|
date | Mon, 27 Sep 2021 23:12:43 -0700 |
parents | 4880a9868673 |
children |
line wrap: on
line diff
--- a/service/arduinoNode/devices.py Mon Sep 27 23:15:33 2021 -0700 +++ b/service/arduinoNode/devices.py Mon Sep 27 23:12:43 2021 -0700 @@ -42,13 +42,13 @@ # subclasses may add args to this def __init__(self, graph, uri, pinNumber): - scales.init(self, self.__class__.__name__) - self._stats = scales.collection(self.__class__.__name__, - scales.PmfStat('poll'), - scales.PmfStat('output'), - ) self.graph, self.uri = graph, uri self.pinNumber = pinNumber + scales.init(self, self.__class__.__name__) + self.stats = scales.collection(self.__class__.__name__, + scales.PmfStat('poll'), + scales.PmfStat('output'), + ) self.hostStateInit() def hostStateInit(self):