From 4609fa52f55f7db6b3756868d175a06ce982e292 Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Tue, 9 Oct 2018 01:38:39 +0200 Subject: [PATCH] pydoorlock: minor stylistic fixups Signed-off-by: Ralf Ramsauer --- pydoorlock/Door.py | 1 + pydoorlock/WebApp.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pydoorlock/Door.py b/pydoorlock/Door.py index f63fe56..845e9ab 100644 --- a/pydoorlock/Door.py +++ b/pydoorlock/Door.py @@ -1,5 +1,6 @@ from enum import Enum + class DoorState(Enum): Open = 0 Present = 1 diff --git a/pydoorlock/WebApp.py b/pydoorlock/WebApp.py index ea76b46..18eaaff 100644 --- a/pydoorlock/WebApp.py +++ b/pydoorlock/WebApp.py @@ -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