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

@@ -52,7 +52,7 @@ class TestSensorMoldIndicator(unittest.TestCase):
}
},
)
self.hass.block_till_done()
moldind = self.hass.states.get("sensor.mold_indicator")
assert moldind
assert UNIT_PERCENTAGE == moldind.attributes.get("unit_of_measurement")
@@ -82,6 +82,7 @@ class TestSensorMoldIndicator(unittest.TestCase):
}
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
moldind = self.hass.states.get("sensor.mold_indicator")
@@ -116,6 +117,7 @@ class TestSensorMoldIndicator(unittest.TestCase):
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
moldind = self.hass.states.get("sensor.mold_indicator")
@@ -159,6 +161,7 @@ class TestSensorMoldIndicator(unittest.TestCase):
}
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.block_till_done()
moldind = self.hass.states.get("sensor.mold_indicator")
@@ -196,6 +199,7 @@ class TestSensorMoldIndicator(unittest.TestCase):
}
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.states.set(
@@ -268,6 +272,7 @@ class TestSensorMoldIndicator(unittest.TestCase):
}
},
)
self.hass.block_till_done()
self.hass.start()
self.hass.states.set(