From fa2399030a1fbbd0a847c7a13411725088ddec13 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 27 Nov 2021 07:24:42 -1000 Subject: [PATCH] Bump flux_led to 0.25.0 (#60460) * Bump flux_led to 0.25.0 * Refactor color_temp_to_white_levels and improve code coverage by @bdraco in https://github.com/Danielhiversen/flux_led/pull/185 * Adjust protocol to handle newer models that send 0xB0 responses by @bdraco in https://github.com/Danielhiversen/flux_led/pull/186 * Fix effects with floor lamps by @bdraco in https://github.com/Danielhiversen/flux_led/pull/188 * Add support for CCT protocol aka 0x1C models by @bdraco in https://github.com/Danielhiversen/flux_led/pull/187 - Changelog: https://github.com/Danielhiversen/flux_led/compare/0.24.38...0.25.0 * handle change in color_temp_to_white_levels --- homeassistant/components/flux_led/light.py | 4 +++- homeassistant/components/flux_led/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/flux_led/light.py b/homeassistant/components/flux_led/light.py index 0bccc2eafb3..cf43a90bf22 100644 --- a/homeassistant/components/flux_led/light.py +++ b/homeassistant/components/flux_led/light.py @@ -346,7 +346,9 @@ class FluxLight(FluxOnOffEntity, CoordinatorEntity, LightEntity): brightness = kwargs.get( ATTR_BRIGHTNESS, self._device.getWhiteTemperature()[1] ) - cold, warm = color_temp_to_white_levels(color_temp_kelvin, brightness) + channels = color_temp_to_white_levels(color_temp_kelvin, brightness) + warm = channels.warm_white + cold = channels.cool_white await self._device.async_set_levels(r=0, b=0, g=0, w=warm, w2=cold) return # Handle switch to RGB Color Mode diff --git a/homeassistant/components/flux_led/manifest.json b/homeassistant/components/flux_led/manifest.json index 5145dd8ba16..6261eed28b4 100644 --- a/homeassistant/components/flux_led/manifest.json +++ b/homeassistant/components/flux_led/manifest.json @@ -3,7 +3,7 @@ "name": "Flux LED/MagicHome", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/flux_led", - "requirements": ["flux_led==0.24.38"], + "requirements": ["flux_led==0.25.0"], "quality_scale": "platinum", "codeowners": ["@icemanch"], "iot_class": "local_push", diff --git a/requirements_all.txt b/requirements_all.txt index 79560d8cb60..60961f918c4 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -658,7 +658,7 @@ fjaraskupan==1.0.2 flipr-api==1.4.1 # homeassistant.components.flux_led -flux_led==0.24.38 +flux_led==0.25.0 # homeassistant.components.homekit fnvhash==0.1.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index f506655f8d0..31692a304e6 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -399,7 +399,7 @@ fjaraskupan==1.0.2 flipr-api==1.4.1 # homeassistant.components.flux_led -flux_led==0.24.38 +flux_led==0.25.0 # homeassistant.components.homekit fnvhash==0.1.0