Coerce RGB and XY color values to tuples instead of lists.

This commit is contained in:
Jan Harkes 2016-03-31 22:59:18 -04:00
parent 017f47dd2c
commit 4f3dc2ce8b
3 changed files with 14 additions and 12 deletions

View file

@ -305,7 +305,7 @@ class TestLightMQTT(unittest.TestCase):
state = self.hass.states.get('light.test')
self.assertEqual(STATE_ON, state.state)
self.assertEqual([75, 75, 75], state.attributes['rgb_color'])
self.assertEqual((75, 75, 75), state.attributes['rgb_color'])
self.assertEqual(50, state.attributes['brightness'])
def test_show_brightness_if_only_command_topic(self):