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
This commit is contained in:
J. Nick Koston 2021-11-27 07:24:42 -10:00 committed by GitHub
parent 3cd80b95db
commit fa2399030a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -346,7 +346,9 @@ class FluxLight(FluxOnOffEntity, CoordinatorEntity, LightEntity):
brightness = kwargs.get( brightness = kwargs.get(
ATTR_BRIGHTNESS, self._device.getWhiteTemperature()[1] 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) await self._device.async_set_levels(r=0, b=0, g=0, w=warm, w2=cold)
return return
# Handle switch to RGB Color Mode # Handle switch to RGB Color Mode

View file

@ -3,7 +3,7 @@
"name": "Flux LED/MagicHome", "name": "Flux LED/MagicHome",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/flux_led", "documentation": "https://www.home-assistant.io/integrations/flux_led",
"requirements": ["flux_led==0.24.38"], "requirements": ["flux_led==0.25.0"],
"quality_scale": "platinum", "quality_scale": "platinum",
"codeowners": ["@icemanch"], "codeowners": ["@icemanch"],
"iot_class": "local_push", "iot_class": "local_push",

View file

@ -658,7 +658,7 @@ fjaraskupan==1.0.2
flipr-api==1.4.1 flipr-api==1.4.1
# homeassistant.components.flux_led # homeassistant.components.flux_led
flux_led==0.24.38 flux_led==0.25.0
# homeassistant.components.homekit # homeassistant.components.homekit
fnvhash==0.1.0 fnvhash==0.1.0

View file

@ -399,7 +399,7 @@ fjaraskupan==1.0.2
flipr-api==1.4.1 flipr-api==1.4.1
# homeassistant.components.flux_led # homeassistant.components.flux_led
flux_led==0.24.38 flux_led==0.25.0
# homeassistant.components.homekit # homeassistant.components.homekit
fnvhash==0.1.0 fnvhash==0.1.0