mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Do async_setup_platform in background (#36244)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user