From c4892d1d6d3a8cdf05a070d6921e8f556cf834e9 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Sun, 3 Nov 2024 11:58:25 +0100 Subject: [PATCH] fix --- esphome/config_validation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/esphome/config_validation.py b/esphome/config_validation.py index bc3772dad6..d24eb31e51 100644 --- a/esphome/config_validation.py +++ b/esphome/config_validation.py @@ -1634,7 +1634,7 @@ class GenerateID(Optional): super().__init__(key, default=lambda: None) -def _get_platform_key(*args): +def _get_default_key(*args): key = [CORE.target_platform] key.extend(args) return ["_".join(key)] @@ -1662,10 +1662,10 @@ class SplitDefault(Optional): variant = get_esp32_variant().replace(VARIANT_ESP32, "").lower() framework = CORE.target_framework.replace("esp-", "") if variant: - keys += _get_platform_key(variant, framework) - keys += _get_platform_key(variant) - keys += _get_platform_key(framework) - keys += _get_platform_key() + keys += _get_default_key(variant, framework) + keys += _get_default_key(variant) + keys += _get_default_key(framework) + keys += _get_default_key() keys += [vol.UNDEFINED] for key in keys: if self._defaults.get(key) is not None: