mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
change dummy logic
This commit is contained in:
parent
fb61429266
commit
68fc73cc25
2 changed files with 5 additions and 7 deletions
|
@ -25,7 +25,6 @@ class CBPiKettleLogic(metaclass=ABCMeta):
|
|||
async def run(self):
|
||||
self.state = True
|
||||
while self.running:
|
||||
print("RUNNING KETTLE")
|
||||
await asyncio.sleep(1)
|
||||
self.state = False
|
||||
|
||||
|
|
|
@ -5,12 +5,11 @@ from cbpi.api import *
|
|||
@parameters([])
|
||||
class CustomLogic(CBPiKettleLogic):
|
||||
|
||||
pass
|
||||
|
||||
@action(key="test", parameters=[])
|
||||
async def action1(self, **kwargs):
|
||||
print("ACTION")
|
||||
|
||||
async def run(self):
|
||||
self.state = True
|
||||
while self.running:
|
||||
await asyncio.sleep(1)
|
||||
self.state = False
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue