craftbeerpi4-pione/cbpi/extension/dummylogic/__init__.py
2021-01-30 22:29:33 +01:00

27 lines
470 B
Python

import asyncio
from cbpi.api import *
@parameters([])
class CustomLogic(CBPiKettleLogic):
pass
@action(key="test", parameters=[])
async def action1(self, **kwargs):
print("ACTION")
def setup(cbpi):
'''
This method is called by the server during startup
Here you need to register your plugins at the server
:param cbpi: the cbpi core
:return:
'''
cbpi.plugin.register("CustomKettleLogic", CustomLogic)