another fix

This commit is contained in:
avollkopf 2023-03-27 22:12:11 +02:00
parent b52e260b4a
commit 54eb769fb3

View file

@ -80,7 +80,7 @@ class OneWire(CBPiSensor):
if self.kettleid is not None and self.fermenterid is not None: if self.kettleid is not None and self.fermenterid is not None:
self.reducedlogging=False self.reducedlogging=False
self.cbpi.notify("OneWire Sensor", "Sensor '" + str(self.sensor.name) + "' cant't have Fermenter and Kettle defined for reduced logging.", NotificationType.WARNING, action=[NotificationAction("OK", self.Confirm)]) self.cbpi.notify("OneWire Sensor", "Sensor '" + str(self.sensor.name) + "' cant't have Fermenter and Kettle defined for reduced logging.", NotificationType.WARNING, action=[NotificationAction("OK", self.Confirm)])
if self.interval >= self.reducedfrequency: if (self.reducedfrequency != 0) and (self.interval >= self.reducedfrequency):
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)])