Do async_setup_platform in background (#36244)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
d488c779fc
commit
276f3afb00
161 changed files with 1184 additions and 305 deletions
|
@ -23,6 +23,7 @@ class TestScene(unittest.TestCase):
|
|||
assert setup_component(
|
||||
self.hass, light.DOMAIN, {light.DOMAIN: {"platform": "test"}}
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
self.light_1, self.light_2 = test_light.ENTITIES[0:2]
|
||||
|
||||
|
@ -72,6 +73,7 @@ class TestScene(unittest.TestCase):
|
|||
]
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
common.activate(self.hass, "scene.test")
|
||||
self.hass.block_till_done()
|
||||
|
@ -121,6 +123,7 @@ class TestScene(unittest.TestCase):
|
|||
]
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
common.activate(self.hass, "scene.test")
|
||||
self.hass.block_till_done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue