1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 02:14:26 +01:00

pydoorlock: minor stylistic fixups

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2018-10-09 01:38:39 +02:00
parent 92b791a835
commit 4609fa52f5
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
from enum import Enum
class DoorState(Enum):
Open = 0
Present = 1

View File

@ -56,7 +56,7 @@ class AuthenticationForm(FlaskForm):
@socketio.on('request_status')
@socketio.on('connect')
def on_connect():
emit_doorstate()
emit_doorstate()
@webapp.route('/display')
@ -147,6 +147,7 @@ def home():
led=logic.state.to_img(),
banner='%s - %s' % (title, room))
def webapp_run(cfg, my_logic, status, version, template_folder, static_folder):
global logic
logic = my_logic