From 380bd79c0d1896da32365b379ffeb314062e1329 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Sun, 3 Nov 2024 10:54:54 +0100 Subject: [PATCH] fix --- esphome/config_validation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/config_validation.py b/esphome/config_validation.py index 2501d6b7cf..bec807a92f 100644 --- a/esphome/config_validation.py +++ b/esphome/config_validation.py @@ -1663,9 +1663,8 @@ class SplitDefault(Optional): self._defaults[platform_key] = vol.default_factory(value) for platform_key, priority in priority_mapping.items(): - priority = [platform_key] + priority prioritized_default = _get_priority_default( - *[kwargs.get(p) for p in priority] + *[kwargs.get(p) for p in [platform_key] + priority] ) self._defaults[platform_key] = vol.default_factory(prioritized_default)