Get it working

This commit is contained in:
redfast00 2021-09-15 20:01:44 +02:00
parent 6334034ac3
commit 751564f5f8
No known key found for this signature in database
GPG Key ID: 5946E0E34FD0553C
1 changed files with 3 additions and 3 deletions

View File

@ -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'