From fc351246e9779399bcbd2e3b31c8720c5172b3ff Mon Sep 17 00:00:00 2001 From: Sterling Archer Date: Tue, 11 Aug 2026 17:02:40 -0700 Subject: [PATCH] Resolve device profiles by alias when the reference includes a .yaml extension --- solixauto/paths.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/solixauto/paths.py b/solixauto/paths.py index 63a4847..7200f23 100644 --- a/solixauto/paths.py +++ b/solixauto/paths.py @@ -126,8 +126,13 @@ def resolve_profile(reference, kind): def _slug(value): + text = str(value) + for suffix in (".yaml", ".yml"): + if text.lower().endswith(suffix): + text = text[: -len(suffix)] + break return "".join( - char.lower() if char.isalnum() else "-" for char in str(value) + char.lower() if char.isalnum() else "-" for char in text ).strip("-")