From 8ff125f7795734c7749fa22836238d60eade0e47 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 31 Jul 2023 20:08:59 -0700 Subject: [PATCH] sort --- custom_components/adaptive_lighting/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 15d10a70..4e621a96 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -658,7 +658,7 @@ def _expand_light_groups(hass: HomeAssistant, lights: list[str]) -> list[str]: _LOGGER.debug("Expanded %s to %s", light, group) else: all_lights.add(light) - return list(all_lights) + return sorted(all_lights) @bind_hass