mirror of
https://github.com/esphome/esphome.git
synced 2024-12-01 11:14:13 +01:00
Update __init__.py
This commit is contained in:
parent
7f79351b88
commit
b7d6923767
1 changed files with 0 additions and 2 deletions
|
@ -69,8 +69,6 @@ async def to_code(config):
|
||||||
def validate_mode(value):
|
def validate_mode(value):
|
||||||
if not (value[CONF_OUTPUT]):
|
if not (value[CONF_OUTPUT]):
|
||||||
raise cv.Invalid("Mode must be output")
|
raise cv.Invalid("Mode must be output")
|
||||||
if value[CONF_INPUT] and value[CONF_OUTPUT]:
|
|
||||||
raise cv.Invalid("Mode must be output")
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue