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:
parent
92b791a835
commit
4609fa52f5
@ -1,5 +1,6 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class DoorState(Enum):
|
||||
Open = 0
|
||||
Present = 1
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user