Skip to content

Commit

Permalink
Add tea time effect to Yeelight (home-assistant#95936)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrheinbay authored Oct 3, 2023
1 parent 7c7f00a commit 135570a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/yeelight/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
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]

Expand All @@ -118,6 +119,7 @@
EFFECT_TWITTER,
EFFECT_HOME,
EFFECT_CANDLE_FLICKER,
EFFECT_TEA_TIME,
*YEELIGHT_TEMP_ONLY_EFFECT_LIST,
]

Expand Down Expand Up @@ -162,6 +164,7 @@
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))
Expand Down

0 comments on commit 135570a

Please sign in to comment.