Coerce RGB and XY color values to tuples instead of lists.
This commit is contained in:
parent
017f47dd2c
commit
4f3dc2ce8b
3 changed files with 14 additions and 12 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue