1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 05:57:01 +00:00
Files
core/tests/util
Anders Melchiorsen 9e16be3173 LIFX: clean up internal color conversions (#7964)
* Add color_util.color_hsv_to_RGB

* Use helper functions for LIFX conversions

The LIFX API uses 16 bits for saturation/brightness while HA uses 8 bits.
Using helper functions makes the conversion a bit nicer and less prone
to off-by-one issues.

The colorsys library uses 0.0-1.0 but we can avoid that by using the HA
color_util converters instead.
2017-06-11 21:19:58 +02:00
..
2017-01-03 21:33:48 +01:00
2017-05-25 22:21:22 -07:00
2017-05-01 20:09:49 -07:00