mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 00:05:43 +00:00
Last Touches
This commit is contained in:
@@ -185,6 +185,8 @@ def templatable(other_validators):
|
||||
def validator(value):
|
||||
if isinstance(value, Lambda):
|
||||
return value
|
||||
if isinstance(other_validators, dict):
|
||||
return vol.Schema(other_validators)(value)
|
||||
return other_validators(value)
|
||||
|
||||
return validator
|
||||
|
||||
Reference in New Issue
Block a user