From 37f995d32a2668c746a93d879e006d4b89d73dc9 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 15 Jan 2019 20:11:50 +0100 Subject: [PATCH] Fix custom output requiring type Fixes #343 --- esphomeyaml/components/output/custom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esphomeyaml/components/output/custom.py b/esphomeyaml/components/output/custom.py index 6343a52853..3ca84890de 100644 --- a/esphomeyaml/components/output/custom.py +++ b/esphomeyaml/components/output/custom.py @@ -33,8 +33,7 @@ def validate_custom_output(value): raise vol.Invalid("Value must be dict") if CONF_TYPE not in value: raise vol.Invalid("type not specified!") - type = cv.string_strict(value[CONF_TYPE]).lower() - value[CONF_TYPE] = type + type = cv.string_strict(value.pop(CONF_TYPE)).lower() if type == 'binary': return BINARY_SCHEMA(value) if type == 'float':