From 15d98f59e52474bb5e082d58a86d4e3c07e05c3e Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Tue, 28 Oct 2025 09:41:38 -0400 Subject: [PATCH] state-routes: use get_count() instead of next() We cannot use next() as the properties are not a Lua table anymore. --- src/scripts/device/state-routes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/device/state-routes.lua b/src/scripts/device/state-routes.lua index b889524b..e71a76f5 100644 --- a/src/scripts/device/state-routes.lua +++ b/src/scripts/device/state-routes.lua @@ -114,7 +114,7 @@ apply_route_props_hook = SimpleEventHook { local dev_info = devinfo:get_device_info (device) assert (dev_info) - if next (selected_routes) == nil then + if selected_routes:get_count () == 0 then log:info (device, "No routes selected to set on " .. dev_info.name) return end