This commit is contained in:
avollkopf 2023-03-25 14:15:30 +01:00
parent 84bb745054
commit c5d6cb5ae5

View file

@ -61,7 +61,6 @@ class OneWire(CBPiSensor):
def __init__(self, cbpi, id, props):
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()
@ -69,7 +68,7 @@ class OneWire(CBPiSensor):
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.reducedfrequency=float(self.props.get("ReducedLogging", 60))
self.lastlog=0
self.sensor=self.get_sensor(self.id)
self.kettleid=self.props.get("Kettle", None)