1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Do async_setup_platform in background (#36244)

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

View File

@@ -56,6 +56,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -97,6 +98,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -129,6 +131,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -164,6 +167,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -205,6 +209,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -243,6 +248,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -274,6 +280,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -293,6 +300,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -305,6 +313,7 @@ class TestTemplateSwitch:
self.hass, "switch", {"switch": {"platform": "template"}}
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -336,6 +345,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -367,6 +377,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -398,6 +409,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -425,6 +437,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -461,6 +474,7 @@ class TestTemplateSwitch:
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
@@ -502,6 +516,7 @@ async def test_available_template_with_entities(hass):
},
)
await hass.async_block_till_done()
await hass.async_start()
await hass.async_block_till_done()
@@ -542,6 +557,7 @@ async def test_invalid_availability_template_keeps_component_available(hass, cap
},
)
await hass.async_block_till_done()
await hass.async_start()
await hass.async_block_till_done()