Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel83 authored Aug 8, 2019
1 parent 16ad8da commit 63f9f54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/fermenter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ def toggle(self, id):

def run(instance):
instance.run()
fermenter.state = not fermenter.state
cbpi.emit("UPDATE_FERMENTER", cbpi.cache.get(self.cache_key).get(id))

t = cbpi.socketio.start_background_task(target=run, instance=instance)
fermenter.state = not fermenter.state
Expand Down

0 comments on commit 63f9f54

Please sign in to comment.