change dummy logic

This commit is contained in:
Manuel Fritsch 2021-02-06 20:09:01 +01:00
parent fb61429266
commit 68fc73cc25
2 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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