Skip to content

Commit

Permalink
Implements Diwali feature sbidy#161
Browse files Browse the repository at this point in the history
  • Loading branch information
PrincipleOfLeastAction committed Apr 26, 2023
1 parent a11d2c7 commit 307b706
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion pywizlight/push_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


class PushManager:

_manager = None

@classmethod
Expand Down
5 changes: 3 additions & 2 deletions pywizlight/scenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
30: "Golden white",
31: "Pulse",
32: "Steampunk",
33: "Diwali",
1000: "Rhythm",
}
SCENE_NAME_TO_ID = {scene_name: scene_id for (scene_id, scene_name) in SCENES.items()}
TW_SCENES = [6, 9, 10, 11, 12, 13, 14, 15, 16, 18, 29, 30, 31, 32]
DW_SCENES = [9, 10, 13, 14, 29, 30, 31, 32]
TW_SCENES = [6, 9, 10, 11, 12, 13, 14, 15, 16, 18, 29, 30, 31, 32, 33]
DW_SCENES = [9, 10, 13, 14, 29, 30, 31, 32, 33]

SCENES_BY_CLASS: Dict[BulbClass, List[str]] = {
BulbClass.RGB: list(cast(Iterable, SCENES.values())),
Expand Down
1 change: 1 addition & 0 deletions pywizlight/tests/test_bulb_dimmable_white.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ async def test_supported_scenes(dimmable_bulb: wizlight) -> None:
"Golden white",
"Pulse",
"Steampunk",
"Diwali",
]
1 change: 1 addition & 0 deletions pywizlight/tests/test_bulb_light_strip_1_25_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ async def test_supported_scenes(light_strip: wizlight) -> None:
"Golden white",
"Pulse",
"Steampunk",
"Diwali",
"Rhythm",
]

Expand Down
1 change: 1 addition & 0 deletions pywizlight/tests/test_bulb_rgbw_1_21_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ async def test_supported_scenes(rgbw_bulb: wizlight) -> None:
"Golden white",
"Pulse",
"Steampunk",
"Diwali",
"Rhythm",
]
1 change: 1 addition & 0 deletions pywizlight/tests/test_bulb_turnable_white.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ async def test_supported_scenes(turnable_bulb: wizlight) -> None:
"Golden white",
"Pulse",
"Steampunk",
"Diwali",
]

0 comments on commit 307b706

Please sign in to comment.