From 307b706debab4fccebb23e540029648f73fd96e7 Mon Sep 17 00:00:00 2001 From: POLA <60993402+PrincipleOfLeastAction@users.noreply.github.com> Date: Wed, 26 Apr 2023 21:55:09 +1000 Subject: [PATCH] Implements Diwali feature #161 --- pywizlight/push_manager.py | 1 - pywizlight/scenes.py | 5 +++-- pywizlight/tests/test_bulb_dimmable_white.py | 1 + pywizlight/tests/test_bulb_light_strip_1_25_0.py | 1 + pywizlight/tests/test_bulb_rgbw_1_21_4.py | 1 + pywizlight/tests/test_bulb_turnable_white.py | 1 + 6 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pywizlight/push_manager.py b/pywizlight/push_manager.py index ff616da..7445ca3 100755 --- a/pywizlight/push_manager.py +++ b/pywizlight/push_manager.py @@ -15,7 +15,6 @@ class PushManager: - _manager = None @classmethod diff --git a/pywizlight/scenes.py b/pywizlight/scenes.py index 6c2fe4b..77186b0 100755 --- a/pywizlight/scenes.py +++ b/pywizlight/scenes.py @@ -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())), diff --git a/pywizlight/tests/test_bulb_dimmable_white.py b/pywizlight/tests/test_bulb_dimmable_white.py index 891293f..8bd265c 100644 --- a/pywizlight/tests/test_bulb_dimmable_white.py +++ b/pywizlight/tests/test_bulb_dimmable_white.py @@ -48,4 +48,5 @@ async def test_supported_scenes(dimmable_bulb: wizlight) -> None: "Golden white", "Pulse", "Steampunk", + "Diwali", ] diff --git a/pywizlight/tests/test_bulb_light_strip_1_25_0.py b/pywizlight/tests/test_bulb_light_strip_1_25_0.py index 61efd91..28717d3 100644 --- a/pywizlight/tests/test_bulb_light_strip_1_25_0.py +++ b/pywizlight/tests/test_bulb_light_strip_1_25_0.py @@ -63,6 +63,7 @@ async def test_supported_scenes(light_strip: wizlight) -> None: "Golden white", "Pulse", "Steampunk", + "Diwali", "Rhythm", ] diff --git a/pywizlight/tests/test_bulb_rgbw_1_21_4.py b/pywizlight/tests/test_bulb_rgbw_1_21_4.py index 2fced71..94ca887 100644 --- a/pywizlight/tests/test_bulb_rgbw_1_21_4.py +++ b/pywizlight/tests/test_bulb_rgbw_1_21_4.py @@ -72,5 +72,6 @@ async def test_supported_scenes(rgbw_bulb: wizlight) -> None: "Golden white", "Pulse", "Steampunk", + "Diwali", "Rhythm", ] diff --git a/pywizlight/tests/test_bulb_turnable_white.py b/pywizlight/tests/test_bulb_turnable_white.py index 77dd6eb..e695216 100644 --- a/pywizlight/tests/test_bulb_turnable_white.py +++ b/pywizlight/tests/test_bulb_turnable_white.py @@ -54,4 +54,5 @@ async def test_supported_scenes(turnable_bulb: wizlight) -> None: "Golden white", "Pulse", "Steampunk", + "Diwali", ]