mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
Created Custom Initializer (markdown)
@@ -0,0 +1,11 @@
|
||||
If you just want to run some code once during startup you can extend CraftBeerPi with custom Initializers
|
||||
|
||||
|
||||
```
|
||||
from modules import cbpi
|
||||
|
||||
@cbpi.initalizer()
|
||||
def init(cbpi):
|
||||
## YOUR CODE GOES HERE
|
||||
pass
|
||||
```
|
||||
Reference in New Issue
Block a user