рефакторинг, конфиг yaml

This commit is contained in:
Andrey
2021-01-22 10:27:02 +03:00
parent c3b9474d56
commit bb4ce882f5
12 changed files with 409 additions and 400 deletions

View File

@@ -12,8 +12,13 @@ W1BUS = 'w1bus'
CONF_PORT_TO_SCAN = 'port_to_scan'
CONF_RELOAD = 'reload'
CONF_INVERT = 'invert'
CONF_PORTS = 'ports'
CONF_CUSTOM = '__custom'
CONF_SKIP = 'skip'
PLATFORMS = [
"light",
"switch",
"binary_sensor",
"sensor",
]
]
EVENT_BINARY_SENSOR = f'{DOMAIN}.sensor'