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
View File
@@ -48,6 +48,7 @@ def test_sensor_value_from_code():
}
},
)
HASS.block_till_done()
state = HASS.states.get("sensor.test")
assert state.state == "unknown"
@@ -77,6 +78,7 @@ def test_disregard_wrong_payload():
}
},
)
HASS.block_till_done()
# Try set value from data with incorrect payload
fire_pilight_message(
@@ -120,6 +122,7 @@ def test_variable_missing(caplog):
}
},
)
HASS.block_till_done()
# Create code without sensor variable
fire_pilight_message(