add new events, fix binsensor

This commit is contained in:
Andrey
2021-01-27 21:40:55 +03:00
parent a7d7738a5c
commit 6d3391bc45
9 changed files with 124 additions and 47 deletions

View File

@@ -31,4 +31,13 @@ PLATFORMS = [
"sensor",
]
EVENT_BINARY_SENSOR = f'{DOMAIN}.sensor'
PATT_SPLIT = re.compile('[;/]')
EVENT_BINARY = f'{DOMAIN}.binary'
PATT_SPLIT = re.compile('[;/]')
LONG = 'long'
RELEASE = 'release'
LONG_RELEASE = 'long_release'
PRESS = 'press'
SINGLE_CLICK = 'single'
DOUBLE_CLICK = 'double'