mirror of
https://github.com/esphome/esphome.git
synced 2025-01-07 13:21:44 +01:00
fix
This commit is contained in:
parent
c4892d1d6d
commit
f76f906cf5
1 changed files with 1 additions and 3 deletions
|
@ -1650,7 +1650,6 @@ class SplitDefault(Optional):
|
|||
|
||||
for platform_key, value in kwargs.items():
|
||||
self._defaults[platform_key] = vol.default_factory(value)
|
||||
self._defaults[vol.UNDEFINED] = vol.default_factory(vol.UNDEFINED)
|
||||
|
||||
@property
|
||||
def default(self):
|
||||
|
@ -1666,11 +1665,10 @@ class SplitDefault(Optional):
|
|||
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:
|
||||
return self._defaults[key]
|
||||
raise NotImplementedError
|
||||
return vol.default_factory(vol.UNDEFINED)
|
||||
|
||||
@default.setter
|
||||
def default(self, value):
|
||||
|
|
Loading…
Reference in a new issue