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
..
__init__.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_async.py Run tests on Python 3.6 (#5162) 2017-01-03 21:33:48 +01:00
test_color.py LIFX: clean up internal color conversions (#7964) 2017-06-11 21:19:58 +02:00
test_distance.py Add unit system support 2016-08-04 22:02:19 -07:00
test_dt.py assertEquals is deprecated (#7777) 2017-05-25 22:21:22 -07:00
test_init.py Fix/slugify with german umlaut ss (#7029) 2017-04-11 19:51:07 -07:00
test_location.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_package.py Capture and log pip install error output (#7200) 2017-04-21 14:15:05 +02:00
test_unit_system.py Entity and climate: do not convert temperature unnecessary (#4522) 2016-11-22 17:38:04 -08:00
test_yaml.py Fix YAML dump (#7388) 2017-05-01 20:09:49 -07:00