Remove async_late_forward_entry_setups and instead implicitly hold the lock (#119088)

* Refactor config entry forwards to implictly obtain the lock instead of explictly

This is a bit of a tradeoff to not need async_late_forward_entry_setups

The downside is we can no longer detect non-awaited plastform setups
as we will always implicitly obtain the lock instead of explictly.

Note, this PR is incomplete and is only for discussion purposes
at this point

* preen

* cover

* cover

* restore check for non-awaited platform setup

* cleanup

* fix missing word

* make non-awaited test safer
This commit is contained in:
J. Nick Koston 2024-06-12 20:06:11 -05:00 committed by GitHub
parent 4e121fcbe8
commit dbd3147c9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 381 additions and 188 deletions

View file

@ -13,6 +13,12 @@ IGNORE_UNCAUGHT_EXCEPTIONS = [
"tests.helpers.test_event",
"test_track_point_in_time_repr",
),
(
# This test explicitly throws an uncaught exception
# and should not be removed.
"tests.test_config_entries",
"test_config_entry_unloaded_during_platform_setups",
),
(
# This test explicitly throws an uncaught exception
# and should not be removed.