From 0fea3871c5c4cb1e4b649d6753f794eea8fe6cdd Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Sat, 2 Dec 2023 19:59:38 +0100 Subject: [PATCH] test --- app/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views.py b/app/views.py index a1839b1..dfe7768 100644 --- a/app/views.py +++ b/app/views.py @@ -211,6 +211,7 @@ def powebar_group_action(group, action): for outlet in device['outlets']: if outlet in powerbars[powerbar]['outlets']: powerbars[powerbar]['outlets'][outlet]['state'] = action + app.socketio.emit('power-event',{'powerbar': powerbar, 'outlet' : outlet, 'action' : action}, namespace='/powerupdates') print(f"Turned {action} powerbar {powerbar} outlet {outlet}") return jsonify({'status': "200"})