Update cbpi/extension/mashstep/__init__.py

Co-authored-by: Marcel Schulz <schullebernd@googlemail.com>
This commit is contained in:
Martin 2021-03-15 22:09:23 +01:00 committed by GitHub
parent aabe76d15d
commit 919d6c8e93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ class MashStep(CBPiStep):
self.timer = Timer(int(self.props.Timer) * 60, on_update=self.on_timer_update, on_done=self.on_timer_done)
async def run(self):
while True:
while self.running == True:
await asyncio.sleep(1)
sensor_value = self.get_sensor_value(self.props.Sensor)
if sensor_value.get("value") >= int(self.props.Temp) and self.timer.is_running is not True: