mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
pydoorlock: minor stylistic fixups
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
parent
92b791a835
commit
4609fa52f5
@ -1,5 +1,6 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class DoorState(Enum):
|
class DoorState(Enum):
|
||||||
Open = 0
|
Open = 0
|
||||||
Present = 1
|
Present = 1
|
||||||
|
@ -147,6 +147,7 @@ def home():
|
|||||||
led=logic.state.to_img(),
|
led=logic.state.to_img(),
|
||||||
banner='%s - %s' % (title, room))
|
banner='%s - %s' % (title, room))
|
||||||
|
|
||||||
|
|
||||||
def webapp_run(cfg, my_logic, status, version, template_folder, static_folder):
|
def webapp_run(cfg, my_logic, status, version, template_folder, static_folder):
|
||||||
global logic
|
global logic
|
||||||
logic = my_logic
|
logic = my_logic
|
||||||
|
Loading…
Reference in New Issue
Block a user