Update Formulas in Convert XY to RGB (#6322)
* Update to Current RGB D65 Conversion As per Philips Hue https://developers.meethue.com/documentation/color-conversions-rgb-xy * Update the source of the XYZ to RGB formulas * Fix Whitespace * Update Whitespace * Update Tests for new Formulas * Update Tests * Update XY_Brightness_to_hsv tests * Update test_color.py
This commit is contained in:
1 parent
e14d6f11c6
commit
edd5db296d
3 files changed
+12
-13
No files matched your search
@@ -39,7 +39,7 @@ class TestDemoLight(unittest.TestCase):
|
||||
self.assertEqual((.4, .6), state.attributes.get(light.ATTR_XY_COLOR))
|
||||
self.assertEqual(25, state.attributes.get(light.ATTR_BRIGHTNESS))
|
||||
self.assertEqual(
|
||||
(82, 91, 0), state.attributes.get(light.ATTR_RGB_COLOR))
|
||||
(76, 95, 0), state.attributes.get(light.ATTR_RGB_COLOR))
|
||||
self.assertEqual('rainbow', state.attributes.get(light.ATTR_EFFECT))
|
||||
light.turn_on(
|
||||
self.hass, ENTITY_LIGHT, rgb_color=(251, 252, 253),
|
||||
|
||||
Reference in new issue
Block a user