From 4124e6788f4b01cc8da361e90cb811f9996f5722 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 22 Dec 2024 11:32:35 +0100 Subject: [PATCH] bundles/infobeamer-monitor: sort by device id --- bundles/infobeamer-monitor/files/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/infobeamer-monitor/files/monitor.py b/bundles/infobeamer-monitor/files/monitor.py index 01ffe29..7646fa6 100644 --- a/bundles/infobeamer-monitor/files/monitor.py +++ b/bundles/infobeamer-monitor/files/monitor.py @@ -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: