more self.hass.pool.block_till_done()
This commit is contained in:
parent
90063ea7f8
commit
698e30bd2b
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@ class TestLightMQTT(unittest.TestCase):
|
|||
self.hass.pool.block_till_done()
|
||||
|
||||
light_state = self.hass.states.get('light.test')
|
||||
self.hass.pool.block_till_done()
|
||||
self.assertEqual(100,
|
||||
light_state.attributes['brightness'])
|
||||
|
||||
|
@ -111,6 +112,7 @@ class TestLightMQTT(unittest.TestCase):
|
|||
self.hass.pool.block_till_done()
|
||||
|
||||
light_state = self.hass.states.get('light.test')
|
||||
self.hass.pool.block_till_done()
|
||||
self.assertEqual(xy,
|
||||
light_state.attributes['xy_color'])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue