craftbeerpi4-pione/core/api/kettle_logic.py

31 lines
560 B
Python
Raw Normal View History

2018-11-18 15:40:10 +01:00
from core.api.extension import CBPiExtension
class CBPiKettleLogic(CBPiExtension):
2018-11-29 21:59:08 +01:00
'''
Base Class for a Kettle logic.
'''
def stop(self):
'''
test
:return:
'''
pass
def run(self):
'''
This method is running as background process when logic is started.
Typically a while loop responsible that the method keeps running
while self.running:
await asyncio.sleep(1)
:return:
'''
pass