This commit is contained in:
avollkopf 2023-03-27 22:04:54 +02:00
parent e16c0ac66d
commit b52e260b4a
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ class MQTTSensor(CBPiSensor):
logging.error("MQTT Sensor Error {}".format(e))
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.fermenter = self.get_fermenter(self.fermenterid) if self.fermenterid is not None else None
now=time.time()

View file

@ -123,7 +123,7 @@ class OneWire(CBPiSensor):
await asyncio.sleep(self.interval)
async def logvalue(self):
if self.reducedfrequency == 0:
if self.reducedfrequency != 0:
now=time.time()
logging.info("OneWire {} logging subroutine".format(self.sensor.name))
if self.kettle is not None: