mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Use breaks_in_ha_version in report_usage (#131137)
* Use breaks_in_ha_version in report_usage * Revert behavior change
This commit is contained in:
@ -657,11 +657,11 @@ class HomeAssistant:
|
||||
from .helpers import frame # pylint: disable=import-outside-toplevel
|
||||
|
||||
frame.report_usage(
|
||||
"calls `async_add_job`, which is deprecated and will be removed in Home "
|
||||
"Assistant 2025.4; Please review "
|
||||
"calls `async_add_job`, which should be reviewed against "
|
||||
"https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job"
|
||||
" for replacement options",
|
||||
core_behavior=frame.ReportBehavior.LOG,
|
||||
breaks_in_ha_version="2025.4",
|
||||
)
|
||||
|
||||
if target is None:
|
||||
@ -713,11 +713,11 @@ class HomeAssistant:
|
||||
from .helpers import frame # pylint: disable=import-outside-toplevel
|
||||
|
||||
frame.report_usage(
|
||||
"calls `async_add_hass_job`, which is deprecated and will be removed in Home "
|
||||
"Assistant 2025.5; Please review "
|
||||
"calls `async_add_hass_job`, which should be reviewed against "
|
||||
"https://developers.home-assistant.io/blog/2024/04/07/deprecate_add_hass_job"
|
||||
" for replacement options",
|
||||
core_behavior=frame.ReportBehavior.LOG,
|
||||
breaks_in_ha_version="2025.5",
|
||||
)
|
||||
|
||||
return self._async_add_hass_job(hassjob, *args, background=background)
|
||||
@ -987,11 +987,11 @@ class HomeAssistant:
|
||||
from .helpers import frame # pylint: disable=import-outside-toplevel
|
||||
|
||||
frame.report_usage(
|
||||
"calls `async_run_job`, which is deprecated and will be removed in Home "
|
||||
"Assistant 2025.4; Please review "
|
||||
"calls `async_run_job`, which should be reviewed against "
|
||||
"https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job"
|
||||
" for replacement options",
|
||||
core_behavior=frame.ReportBehavior.LOG,
|
||||
breaks_in_ha_version="2025.4",
|
||||
)
|
||||
|
||||
if asyncio.iscoroutine(target):
|
||||
@ -1636,9 +1636,9 @@ class EventBus:
|
||||
from .helpers import frame # pylint: disable=import-outside-toplevel
|
||||
|
||||
frame.report_usage(
|
||||
"calls `async_listen` with run_immediately, which is"
|
||||
" deprecated and will be removed in Home Assistant 2025.5",
|
||||
"calls `async_listen` with run_immediately",
|
||||
core_behavior=frame.ReportBehavior.LOG,
|
||||
breaks_in_ha_version="2025.5",
|
||||
)
|
||||
|
||||
if event_filter is not None and not is_callback_check_partial(event_filter):
|
||||
@ -1706,9 +1706,9 @@ class EventBus:
|
||||
from .helpers import frame # pylint: disable=import-outside-toplevel
|
||||
|
||||
frame.report_usage(
|
||||
"calls `async_listen_once` with run_immediately, which is "
|
||||
"deprecated and will be removed in Home Assistant 2025.5",
|
||||
"calls `async_listen_once` with run_immediately",
|
||||
core_behavior=frame.ReportBehavior.LOG,
|
||||
breaks_in_ha_version="2025.5",
|
||||
)
|
||||
|
||||
one_time_listener: _OneTimeListener[_DataT] = _OneTimeListener(
|
||||
|
Reference in New Issue
Block a user