From b70edb89bf9205601fb6253b320b06e98bc7fd94 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 13 Apr 2024 20:44:07 -0500 Subject: [PATCH] Fix missing Home in listener deprecation message (#115559) --- homeassistant/core.py | 4 ++-- tests/test_core.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index 0cd7c29cf52..d957953b609 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -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, ) diff --git a/tests/test_core.py b/tests/test_core.py index 9d02fc46e24..58738e3e52a 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -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