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(
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