From 7ebda9c3c64aaaa773a3a7d37cbd56393e6577c4 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 12 Nov 2015 23:08:26 -0800 Subject: [PATCH] Fix MQTT light test --- tests/components/light/test_mqtt.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/components/light/test_mqtt.py b/tests/components/light/test_mqtt.py index f4f64c68acc..39c81ee0a04 100644 --- a/tests/components/light/test_mqtt.py +++ b/tests/components/light/test_mqtt.py @@ -106,8 +106,6 @@ class TestLightMQTT(unittest.TestCase): self.assertEqual(100, light_state.attributes['brightness']) - xy = color_util.color_RGB_to_xy(125, 125, 125) - fire_mqtt_message(self.hass, 'test_light_rgb/status', 'on') self.hass.pool.block_till_done() @@ -116,8 +114,8 @@ class TestLightMQTT(unittest.TestCase): self.hass.pool.block_till_done() light_state = self.hass.states.get('light.test') - self.assertEqual(xy, - light_state.attributes['xy_color']) + self.assertEqual([125, 125, 125], + light_state.attributes.get('rgb_color')) def test_sending_mqtt_commands_and_optimistic(self): self.assertTrue(light.setup(self.hass, {