From c86675f6440eb4974819c9928c216f9ce5f9db05 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sat, 19 Jan 2019 16:53:54 +0100 Subject: [PATCH] Fix custom output requiring type (#344) * Fix custom output requiring type Fixes #343 * Revert "Fix custom output requiring type" This reverts commit 37f995d32a2668c746a93d879e006d4b89d73dc9. * Fix --- esphomeyaml/components/output/custom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphomeyaml/components/output/custom.py b/esphomeyaml/components/output/custom.py index 6343a52853..d2953e4b47 100644 --- a/esphomeyaml/components/output/custom.py +++ b/esphomeyaml/components/output/custom.py @@ -12,6 +12,7 @@ CustomFloatOutputConstructor = output.output_ns.class_('CustomFloatOutputConstru BINARY_SCHEMA = output.PLATFORM_SCHEMA.extend({ cv.GenerateID(): cv.declare_variable_id(CustomBinaryOutputConstructor), vol.Required(CONF_LAMBDA): cv.lambda_, + vol.Required(CONF_TYPE): 'binary', vol.Required(CONF_OUTPUTS): cv.ensure_list(output.BINARY_OUTPUT_SCHEMA.extend({ cv.GenerateID(): cv.declare_variable_id(output.BinaryOutput), @@ -21,8 +22,9 @@ BINARY_SCHEMA = output.PLATFORM_SCHEMA.extend({ FLOAT_SCHEMA = output.PLATFORM_SCHEMA.extend({ cv.GenerateID(): cv.declare_variable_id(CustomFloatOutputConstructor), vol.Required(CONF_LAMBDA): cv.lambda_, + vol.Required(CONF_TYPE): 'float', vol.Required(CONF_OUTPUTS): - cv.ensure_list(output.FLOAT_OUTPUT_PLATFORM_SCHEMA.extend({ + cv.ensure_list(output.FLOAT_OUTPUT_SCHEMA.extend({ cv.GenerateID(): cv.declare_variable_id(output.FloatOutput), })), })