bundles/infobeamer-monitor: sort by device id

This commit is contained in:
Franzi 2024-12-22 11:32:35 +01:00
parent 9ba35569d6
commit 4124e6788f
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -93,7 +93,7 @@ while True:
)
else:
new_state = {}
for device in ib_state:
for device in sorted(ib_state, key=lambda x: x["id"]):
did = str(device["id"])
if did in new_state: