core/homeassistant/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
..
__init__.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
async.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
color.py LIFX: clean up internal color conversions (#7964) 2017-06-11 21:19:58 +02:00
distance.py Add unit system support 2016-08-04 22:02:19 -07:00
dt.py Disable invalid-sequence-index (#7177) 2017-04-19 14:09:00 +02:00
location.py Disable invalid-sequence-index (#7177) 2017-04-19 14:09:00 +02:00
logging.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
package.py Fix typos (#7957) 2017-06-08 15:53:12 +02:00
temperature.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
unit_system.py Fix typos (#7957) 2017-06-08 15:53:12 +02:00
yaml.py Fix YAML dump (#7388) 2017-05-01 20:09:49 -07:00