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
@@ -76,6 +76,7 @@ async def test_fido_sensor(loop, hass):
|
||||
}
|
||||
with assert_setup_component(1):
|
||||
await async_setup_component(hass, "sensor", config)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get("sensor.fido_1112223344_balance")
|
||||
assert state.state == "160.12"
|
||||
assert state.attributes.get("number") == "1112223344"
|
||||
|
||||
Reference in new issue
Block a user