Do async_setup_platform in background (#36244)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Paulus SchoutsenandJ. Nick Koston authored and GitHub committed 2020-05-31 22:18:30 -07:00
1 parent d488c779fc
commit 276f3afb00
161 files changed
+1184 -305

No files matched your search

+3 -3
View File
@@ -135,7 +135,7 @@ async def test_setup_configuration(hass):
weather.DOMAIN,
{"weather": {"name": "HomeTown", "platform": "ipma", "mode": "hourly"}},
)
await hass.async_block_till_done()
await hass.async_block_till_done()
state = hass.states.get("weather.hometown")
assert state.state == "rainy"
@@ -182,7 +182,7 @@ async def test_daily_forecast(hass):
weather.DOMAIN,
{"weather": {"name": "HomeTown", "platform": "ipma", "mode": "daily"}},
)
await hass.async_block_till_done()
await hass.async_block_till_done()
state = hass.states.get("weather.hometown")
assert state.state == "rainy"
@@ -208,7 +208,7 @@ async def test_hourly_forecast(hass):
weather.DOMAIN,
{"weather": {"name": "HomeTown", "platform": "ipma", "mode": "hourly"}},
)
await hass.async_block_till_done()
await hass.async_block_till_done()
state = hass.states.get("weather.hometown")
assert state.state == "rainy"