mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 20:02:22 +01:00
@@ -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':
|
||||
|
Reference in New Issue
Block a user