mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix MQTT light test
This commit is contained in:
parent
16e948d032
commit
7ebda9c3c6
@ -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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user