mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
add note that custom integrations will not be enforced
This commit is contained in:
parent
8c875067cc
commit
1a82ef56fa
@ -85,15 +85,15 @@ class DataUpdateCoordinator(BaseDataUpdateCoordinatorProtocol, Generic[_DataT]):
|
|||||||
self._shutdown_requested = False
|
self._shutdown_requested = False
|
||||||
if config_entry is UNDEFINED:
|
if config_entry is UNDEFINED:
|
||||||
# late import to avoid circular imports
|
# late import to avoid circular imports
|
||||||
from . import frame # pylint: disable=import-outside-toplevel
|
from . import frame # noqa: PLC0415
|
||||||
|
|
||||||
frame.report_usage(
|
frame.report_usage(
|
||||||
"relies on ContextVar, but should pass the config entry explicitly - see "
|
"relies on ContextVar, but should pass the config entry explicitly. "
|
||||||
"https://developers.home-assistant.io/blog/xxxxxxx",
|
"This will not be enforced for custom integrations - see "
|
||||||
core_behavior=frame.ReportBehavior.LOG,
|
"https://github.com/home-assistant/core/pull/138161#discussion_r1958184241",
|
||||||
core_integration_behavior=frame.ReportBehavior.LOG,
|
core_behavior=frame.ReportBehavior.ERROR,
|
||||||
custom_integration_behavior=frame.ReportBehavior.IGNORE,
|
custom_integration_behavior=frame.ReportBehavior.LOG,
|
||||||
breaks_in_ha_version="2026.3",
|
breaks_in_ha_version="2026.8",
|
||||||
)
|
)
|
||||||
|
|
||||||
self.config_entry = config_entries.current_entry.get()
|
self.config_entry = config_entries.current_entry.get()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user