mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
bug fix
This commit is contained in:
parent
e16c0ac66d
commit
b52e260b4a
2 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ class MQTTSensor(CBPiSensor):
|
||||||
logging.error("MQTT Sensor Error {}".format(e))
|
logging.error("MQTT Sensor Error {}".format(e))
|
||||||
|
|
||||||
async def logvalue(self):
|
async def logvalue(self):
|
||||||
if self.reducedfrequency == 0:
|
if self.reducedfrequency != 0:
|
||||||
self.kettle = self.get_kettle(self.kettleid) if self.kettleid is not None else None
|
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.fermenter = self.get_fermenter(self.fermenterid) if self.fermenterid is not None else None
|
||||||
now=time.time()
|
now=time.time()
|
||||||
|
|
|
@ -123,7 +123,7 @@ class OneWire(CBPiSensor):
|
||||||
await asyncio.sleep(self.interval)
|
await asyncio.sleep(self.interval)
|
||||||
|
|
||||||
async def logvalue(self):
|
async def logvalue(self):
|
||||||
if self.reducedfrequency == 0:
|
if self.reducedfrequency != 0:
|
||||||
now=time.time()
|
now=time.time()
|
||||||
logging.info("OneWire {} logging subroutine".format(self.sensor.name))
|
logging.info("OneWire {} logging subroutine".format(self.sensor.name))
|
||||||
if self.kettle is not None:
|
if self.kettle is not None:
|
||||||
|
|
Loading…
Reference in a new issue