mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
more self.hass.pool.block_till_done()
This commit is contained in:
parent
90063ea7f8
commit
698e30bd2b
@ -102,6 +102,7 @@ class TestLightMQTT(unittest.TestCase):
|
|||||||
self.hass.pool.block_till_done()
|
self.hass.pool.block_till_done()
|
||||||
|
|
||||||
light_state = self.hass.states.get('light.test')
|
light_state = self.hass.states.get('light.test')
|
||||||
|
self.hass.pool.block_till_done()
|
||||||
self.assertEqual(100,
|
self.assertEqual(100,
|
||||||
light_state.attributes['brightness'])
|
light_state.attributes['brightness'])
|
||||||
|
|
||||||
@ -111,6 +112,7 @@ class TestLightMQTT(unittest.TestCase):
|
|||||||
self.hass.pool.block_till_done()
|
self.hass.pool.block_till_done()
|
||||||
|
|
||||||
light_state = self.hass.states.get('light.test')
|
light_state = self.hass.states.get('light.test')
|
||||||
|
self.hass.pool.block_till_done()
|
||||||
self.assertEqual(xy,
|
self.assertEqual(xy,
|
||||||
light_state.attributes['xy_color'])
|
light_state.attributes['xy_color'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user