1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 00:05:43 +00:00

Last Touches

This commit is contained in:
Otto Winter
2018-08-25 22:18:22 +02:00
parent 5c39f73fda
commit 1c7bddd005
9 changed files with 17 additions and 9 deletions

View File

@@ -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