mirror of
https://github.com/esphome/esphome.git
synced 2025-03-29 11:49:00 +01:00
Revert "[validation] Allow `maybe_simple_value
` to not have default key in complex value" (#7305)
This commit is contained in:
parent
75899162b3
commit
56aa58780d
1 changed files with 1 additions and 1 deletions
|
@ -1864,7 +1864,7 @@ def maybe_simple_value(*validators, **kwargs):
|
||||||
if value == SCHEMA_EXTRACT:
|
if value == SCHEMA_EXTRACT:
|
||||||
return (validator, key)
|
return (validator, key)
|
||||||
|
|
||||||
if isinstance(value, dict):
|
if isinstance(value, dict) and key in value:
|
||||||
return validator(value)
|
return validator(value)
|
||||||
return validator({key: value})
|
return validator({key: value})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue