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:
parent
3cd80b95db
commit
fa2399030a
4 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue