|
| def | _ObjectT |
| |
| None | _print_deprecation_warning (Any obj, str replacement, str description, str verb, str|None breaks_in_ha_version) |
| |
| None | _print_deprecation_warning_internal (str obj_name, str module_name, str replacement, str description, str verb, str|None breaks_in_ha_version, *bool log_when_no_integration_is_found) |
| |
| None | _print_deprecation_warning_internal_impl (str obj_name, str module_name, str replacement, str description, str verb, str|None breaks_in_ha_version, *bool log_when_no_integration_is_found) |
| |
| Callable[[Callable[_P, _R]], Callable[_P, _R]] | _R (str replacement, *str|None breaks_in_ha_version=None) |
| |
| list[str] | all_with_deprecated_constants (dict[str, Any] module_globals) |
| |
| Any | check_if_deprecated_constant (str name, dict[str, Any] module_globals) |
| |
| list[str] | dir_with_deprecated_constants (list[str] module_globals_keys) |
| |
| Any|None | get_deprecated (dict[str, Any] config, str new_name, str old_name, Any|None default=None) |
| |
Deprecation helpers for Home Assistant.
| Callable[[Callable[_P, _R]], Callable[_P, _R]] homeassistant.helpers.deprecation._R |
( |
str |
replacement, |
|
|
*str | None |
breaks_in_ha_version = None |
|
) |
| |
|
private |
Mark class as deprecated and provide a replacement class to be used instead.
If the deprecated function was called from a custom integration, ask the user to
report an issue.
Mark function as deprecated and provide a replacement to be used instead.
If the deprecated function was called from a custom integration, ask the user to
report an issue.
Definition at line 91 of file deprecation.py.