mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
Updated Custom Initializer (markdown)
+5
-2
@@ -4,8 +4,11 @@ If you just want to run some code once during startup you can extend CraftBeerPi
|
||||
```
|
||||
from modules import cbpi
|
||||
|
||||
@cbpi.initalizer()
|
||||
@cbpi.initalizer(order=100)
|
||||
def init(cbpi):
|
||||
## YOUR CODE GOES HERE
|
||||
pass
|
||||
```
|
||||
```
|
||||
|
||||
@cbpi.initalizer Parameter
|
||||
* order = Integer value to modify the execution order (optional)
|
||||
|
||||
Reference in New Issue
Block a user