Coerce RGB and XY color values to tuples instead of lists.
This commit is contained in:
1 parent
017f47dd2c
commit
4f3dc2ce8b
3 files changed
+14
-12
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user