mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-14 02:58:16 +01:00
26 lines
455 B
Python
26 lines
455 B
Python
import asyncio
|
|
|
|
from cbpi.api import *
|
|
|
|
class CustomLogic(CBPiKettleLogic2):
|
|
|
|
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)
|