Disallow ambiguous color descriptors in the light.turn_on schema (#7765)

* Disallow ambiguous color descriptors in the light.turn_on schema

* Update tests
This commit is contained in:
Anders Melchiorsen 2017-06-02 08:05:05 +02:00 committed by Paulus Schoutsen
parent 9480f41210
commit e2cfdbff06
5 changed files with 39 additions and 24 deletions

View file

@ -491,8 +491,10 @@ class TestLightMQTT(unittest.TestCase):
self.assertEqual(STATE_OFF, state.state)
self.mock_publish.reset_mock()
light.turn_on(self.hass, 'light.test',
brightness=50, xy_color=[0.123, 0.123])
light.turn_on(self.hass, 'light.test', rgb_color=[75, 75, 75],
brightness=50, white_value=80, xy_color=[0.123, 0.123])
white_value=80)
self.hass.block_till_done()
self.mock_publish().async_publish.assert_has_calls([