Files
home-assistant-core/homeassistant/components
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-06-08 07:30:51 +02:00
2017-04-30 20:10:08 -07:00
2017-06-08 15:53:12 +02:00
2017-06-02 00:20:53 -07:00
2017-06-08 15:53:12 +02:00
2017-06-08 11:26:24 +02:00
2017-06-08 15:53:12 +02:00
2017-05-26 22:19:19 +02:00
2017-04-29 22:04:49 -07:00
2017-05-02 22:47:20 +02:00
2017-05-02 22:47:20 +02:00
2017-05-11 09:04:17 -07:00
2017-05-26 13:12:17 -07:00
2017-02-11 11:29:37 -08:00
2017-05-12 08:51:54 -07:00
2017-04-29 22:04:49 -07:00
2017-05-12 20:30:07 -07:00
2017-04-29 22:04:49 -07:00
2017-05-06 00:34:40 +02:00
2017-06-02 00:13:17 -07:00
2017-05-11 22:48:03 +02:00
2017-05-04 07:48:43 +02:00
2017-05-02 22:47:20 +02:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-05-02 22:47:20 +02:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-05-02 22:47:20 +02:00
2017-05-02 22:47:20 +02:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-05-04 13:14:14 -07:00
2017-06-05 08:39:31 -07:00
2017-04-29 22:04:49 -07:00
2017-05-05 19:19:24 -04:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-05-20 21:19:22 +02:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-05-02 22:47:20 +02:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-05-04 23:50:53 -07:00
2017-04-30 20:08:14 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-03-26 15:50:40 +02:00
2017-05-01 23:29:01 -07:00
2017-05-31 09:08:53 -07:00
2017-06-08 12:28:03 +02:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-05-13 14:09:00 -04:00
…
2017-03-26 15:53:42 +02:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00