mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
test
This commit is contained in:
parent
c5d6cb5ae5
commit
3186c182f7
1 changed files with 4 additions and 3 deletions
|
@ -82,9 +82,6 @@ class OneWire(CBPiSensor):
|
||||||
self.reducedlogging=False
|
self.reducedlogging=False
|
||||||
self.cbpi.notify("OneWire Sensor", "Sensor '" + str(self.sensor.name) + "' has shorter or equal 'reduced logging' compared to regular interval.", NotificationType.WARNING, action=[NotificationAction("OK", self.Confirm)])
|
self.cbpi.notify("OneWire Sensor", "Sensor '" + str(self.sensor.name) + "' has shorter or equal 'reduced logging' compared to regular interval.", NotificationType.WARNING, action=[NotificationAction("OK", self.Confirm)])
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
self.t = ReadThread(self.name)
|
self.t = ReadThread(self.name)
|
||||||
self.t.daemon = True
|
self.t.daemon = True
|
||||||
def shutdown():
|
def shutdown():
|
||||||
|
@ -104,6 +101,10 @@ class OneWire(CBPiSensor):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
while self.running == True:
|
while self.running == True:
|
||||||
self.TEMP_UNIT=self.get_config_value("TEMP_UNIT", "C")
|
self.TEMP_UNIT=self.get_config_value("TEMP_UNIT", "C")
|
||||||
if self.TEMP_UNIT == "C": # Report temp in C if nothing else is selected in settings
|
if self.TEMP_UNIT == "C": # Report temp in C if nothing else is selected in settings
|
||||||
|
|
Loading…
Reference in a new issue