Add tea time effect to Yeelight (#95936)

pull/101412/head
Daniel Rheinbay 2023-10-03 14:53:01 +02:00 committed by GitHub
parent 7c7f00a46d
commit 135570acab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,7 @@ EFFECT_SUNSET = "Sunset"
EFFECT_ROMANCE = "Romance"
EFFECT_HAPPY_BIRTHDAY = "Happy Birthday"
EFFECT_CANDLE_FLICKER = "Candle Flicker"
EFFECT_TEA_TIME = "Tea Time"
YEELIGHT_TEMP_ONLY_EFFECT_LIST = [EFFECT_TEMP, EFFECT_STOP]
@ -118,6 +119,7 @@ YEELIGHT_MONO_EFFECT_LIST = [
EFFECT_TWITTER,
EFFECT_HOME,
EFFECT_CANDLE_FLICKER,
EFFECT_TEA_TIME,
*YEELIGHT_TEMP_ONLY_EFFECT_LIST,
]
@ -162,6 +164,7 @@ EFFECTS_MAP = {
EFFECT_ROMANCE: flows.romance,
EFFECT_HAPPY_BIRTHDAY: flows.happy_birthday,
EFFECT_CANDLE_FLICKER: flows.candle_flicker,
EFFECT_TEA_TIME: flows.tea_time,
}
VALID_BRIGHTNESS = vol.All(vol.Coerce(int), vol.Range(min=1, max=100))