Fix Shelly button first trigger (#49635)

This commit is contained in:
Shay Levy 2021-04-25 07:47:18 +03:00 committed by GitHub
parent aaba9766ff
commit 34a588d1ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 8 deletions

View file

@ -49,7 +49,7 @@ BASIC_INPUTS_EVENTS_TYPES = {
"long",
}
SHBTN_1_INPUTS_EVENTS_TYPES = {
SHBTN_INPUTS_EVENTS_TYPES = {
"single",
"double",
"triple",
@ -72,6 +72,8 @@ INPUTS_EVENTS_SUBTYPES = {
"button3": 3,
}
SHBTN_MODELS = ["SHBTN-1", "SHBTN-2"]
# Kelvin value for colorTemp
KELVIN_MAX_VALUE = 6500
KELVIN_MIN_VALUE_WHITE = 2700