From d77b6f7768df2dfca7f8495642ddc95f9492b4a3 Mon Sep 17 00:00:00 2001 From: Rob Baragona Date: Mon, 30 Dec 2024 01:02:20 -0500 Subject: [PATCH] Updates baed on review comments --- CHANGELOG.md | 6 ------ pyproject.toml | 2 +- src/pylutron_caseta/smartbridge.py | 4 ++-- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a539866..f6774ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,12 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased -## [0.23.0] - 2024-11-15 - -### Added - -- Support for Lumaris RGB + Tunable White Tape Light. - ## [0.22.0] - 2024-10-04 ### Added diff --git a/pyproject.toml b/pyproject.toml index 44f6e63..01ae1ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "pylutron-caseta" -version = "0.23.0" +version = "0.22.0" description = "Provides an API to the Lutron Smartbridge" readme = "README.md" license = "Apache-2.0" diff --git a/src/pylutron_caseta/smartbridge.py b/src/pylutron_caseta/smartbridge.py index aba0505..5079c34 100644 --- a/src/pylutron_caseta/smartbridge.py +++ b/src/pylutron_caseta/smartbridge.py @@ -407,7 +407,7 @@ async def set_value( return # Handle Ketra lamps and Lumaris RGB + Tunable White Tape Light - if ((device.get("type") == "SpectrumTune") or (device.get("type") == "ColorTune")): + if device.get("type") in ["SpectrumTune", "ColorTune"]: spectrum_params: Dict[str, Union[str, int]] = {} if value is not None: spectrum_params["Level"] = value @@ -428,7 +428,7 @@ async def set_value( }, ) return - + # Handle Lumaris Tape Light if device.get("type") == "WhiteTune": white_params: Dict[str, Union[str, int]] = {}