Fix missing Home in listener deprecation message (#115559)

This commit is contained in:
J. Nick Koston 2024-04-13 20:44:07 -05:00 committed by GitHub
parent 0feea624f9
commit b70edb89bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1556,7 +1556,7 @@ class EventBus:
frame.report(
"calls `async_listen` with run_immediately, which is"
" deprecated and will be removed in Assistant 2025.5",
" deprecated and will be removed in Home Assistant 2025.5",
error_if_core=False,
)
@ -1630,7 +1630,7 @@ class EventBus:
frame.report(
"calls `async_listen_once` with run_immediately, which is "
"deprecated and will be removed in Assistant 2025.5",
"deprecated and will be removed in Home Assistant 2025.5",
error_if_core=False,
)

View File

@ -3409,5 +3409,5 @@ async def test_async_listen_with_run_immediately_deprecated(
func(EVENT_HOMEASSISTANT_START, _test, run_immediately=run_immediately)
assert (
f"Detected code that calls `{method}` with run_immediately, which is "
"deprecated and will be removed in Assistant 2025.5."
"deprecated and will be removed in Home Assistant 2025.5."
) in caplog.text