mirror of
https://github.com/esphome/esphome.git
synced 2025-01-08 13:51:43 +01:00
fix
This commit is contained in:
parent
394f14880e
commit
380bd79c0d
1 changed files with 1 additions and 2 deletions
|
@ -1663,9 +1663,8 @@ class SplitDefault(Optional):
|
||||||
self._defaults[platform_key] = vol.default_factory(value)
|
self._defaults[platform_key] = vol.default_factory(value)
|
||||||
|
|
||||||
for platform_key, priority in priority_mapping.items():
|
for platform_key, priority in priority_mapping.items():
|
||||||
priority = [platform_key] + priority
|
|
||||||
prioritized_default = _get_priority_default(
|
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)
|
self._defaults[platform_key] = vol.default_factory(prioritized_default)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue