mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-23 14:04:58 +01:00
test
This commit is contained in:
parent
5cbc7e1393
commit
84bb745054
1 changed files with 8 additions and 6 deletions
|
@ -62,6 +62,14 @@ class OneWire(CBPiSensor):
|
|||
super(OneWire, self).__init__(cbpi, id, props)
|
||||
self.value = 200
|
||||
self.reducedfrequency=int(self.props.get("ReducedLogging", 60))
|
||||
|
||||
async def start(self):
|
||||
await super().start()
|
||||
self.name = self.props.get("Sensor")
|
||||
self.interval = int(self.props.get("Interval", 60))
|
||||
self.offset = float(self.props.get("offset",0))
|
||||
|
||||
self.reducedfrequency=int(self.props.get("ReducedLogging", 60))
|
||||
self.lastlog=0
|
||||
self.sensor=self.get_sensor(self.id)
|
||||
self.kettleid=self.props.get("Kettle", None)
|
||||
|
@ -78,12 +86,6 @@ class OneWire(CBPiSensor):
|
|||
self.kettle = self.get_kettle(self.kettleid) if self.kettleid is not None else None
|
||||
self.fermenter = self.get_fermenter(self.fermenterid) if self.fermenterid is not None else None
|
||||
|
||||
async def start(self):
|
||||
await super().start()
|
||||
self.name = self.props.get("Sensor")
|
||||
self.interval = int(self.props.get("Interval", 60))
|
||||
self.offset = float(self.props.get("offset",0))
|
||||
|
||||
self.t = ReadThread(self.name)
|
||||
self.t.daemon = True
|
||||
def shutdown():
|
||||
|
|
Loading…
Reference in a new issue