Fix too green color conversion (#13828)

* Prepare test

* Fix too green color conversion

* Fix remaining tests
This commit is contained in:
Anders Melchiorsen 2018-04-12 02:58:57 +02:00 committed by Paulus Schoutsen
parent 2a5751c09d
commit 9c1bc18def
6 changed files with 50 additions and 50 deletions

View file

@ -206,7 +206,7 @@ class TestLightMQTTJSON(unittest.TestCase):
self.assertEqual(155, state.attributes.get('color_temp'))
self.assertEqual('colorloop', state.attributes.get('effect'))
self.assertEqual(150, state.attributes.get('white_value'))
self.assertEqual((0.32, 0.336), state.attributes.get('xy_color'))
self.assertEqual((0.323, 0.329), state.attributes.get('xy_color'))
# Turn the light off
fire_mqtt_message(self.hass, 'test_light_rgb', '{"state":"OFF"}')