mirror of
https://github.com/esphome/esphome.git
synced 2024-11-13 02:37:47 +01:00
parent
54dd9e94ab
commit
37f995d32a
1 changed files with 1 additions and 2 deletions
|
@ -33,8 +33,7 @@ def validate_custom_output(value):
|
||||||
raise vol.Invalid("Value must be dict")
|
raise vol.Invalid("Value must be dict")
|
||||||
if CONF_TYPE not in value:
|
if CONF_TYPE not in value:
|
||||||
raise vol.Invalid("type not specified!")
|
raise vol.Invalid("type not specified!")
|
||||||
type = cv.string_strict(value[CONF_TYPE]).lower()
|
type = cv.string_strict(value.pop(CONF_TYPE)).lower()
|
||||||
value[CONF_TYPE] = type
|
|
||||||
if type == 'binary':
|
if type == 'binary':
|
||||||
return BINARY_SCHEMA(value)
|
return BINARY_SCHEMA(value)
|
||||||
if type == 'float':
|
if type == 'float':
|
||||||
|
|
Loading…
Reference in a new issue