1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00

Fix custom output, add test

Fixes https://github.com/esphome/issues/issues/346
This commit is contained in:
Otto Winter
2019-05-27 09:58:55 +02:00
parent 510e53de70
commit dac624231f
3 changed files with 27 additions and 0 deletions

View File

@@ -1092,6 +1092,7 @@ def typed_schema(schemas, **kwargs):
key_v = key_validator(value.pop(key))
value = schemas[key_v](value)
value[key] = key_v
return value
return validator