Do async_setup_platform in background (#36244)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
1 parent
d488c779fc
commit
276f3afb00
161 files changed
+1184
-305
No files matched your search
@@ -45,6 +45,7 @@ async def test_get_image_http(hass, aiohttp_client):
|
||||
await async_setup_component(
|
||||
hass, "media_player", {"media_player": {"platform": "demo"}}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get("media_player.bedroom")
|
||||
assert "entity_picture_local" not in state.attributes
|
||||
@@ -72,6 +73,7 @@ async def test_get_image_http_remote(hass, aiohttp_client):
|
||||
await async_setup_component(
|
||||
hass, "media_player", {"media_player": {"platform": "demo"}}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get("media_player.bedroom")
|
||||
assert "entity_picture_local" in state.attributes
|
||||
|
||||
Reference in new issue
Block a user