Update __init__.py

This commit is contained in:
Daniël Koek 2024-02-20 16:25:47 +00:00
parent 7f79351b88
commit b7d6923767

View file

@ -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