From 751564f5f8386c4cab0ead4d1aca3a5428418f17 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Wed, 15 Sep 2021 20:01:44 +0200 Subject: [PATCH] Get it working --- app/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.py b/app/app.py index c4f21c8..7aed0d9 100644 --- a/app/app.py +++ b/app/app.py @@ -13,9 +13,9 @@ CONF = get_config(CONFIGFILE).configuation import tradfricoap.device -ikea_devices, plugs, blinds, groups, others, batteries = get_sorted_devices(groups=True) +ikea_devices, plugs, blinds, groups, others, batteries = tradfricoap.device.get_sorted_devices(groups=True) -supergroup = next(filter(lambda x: x.Description == "SuperGroup", groups), None) +supergroup = next(filter(lambda x: x.Name == "SuperGroup", groups), None) assert supergroup is not None, "SuperGroup not found" @@ -50,7 +50,7 @@ def kelder_close(): app = Flask(__name__) -shared_dict, shared_lock = get_shared_state("127.0.0.1", 35791, None) +shared_dict, shared_lock = get_shared_state("127.0.0.1", 35791, b'not secret') shared_dict["last_state"] = 'unknown'