mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Remove breaks_in_ha_version from deprecated YAML classes (#105062)
This commit is contained in:
parent
5cab64bfcd
commit
ae002e2f38
@ -137,7 +137,7 @@ class FastSafeLoader(FastestAvailableSafeLoader, _LoaderMixin):
|
|||||||
self.secrets = secrets
|
self.secrets = secrets
|
||||||
|
|
||||||
|
|
||||||
@deprecated_class("FastSafeLoader", breaks_in_ha_version="2024.6")
|
@deprecated_class("FastSafeLoader")
|
||||||
class SafeLoader(FastSafeLoader):
|
class SafeLoader(FastSafeLoader):
|
||||||
"""Provided for backwards compatibility. Logs when instantiated."""
|
"""Provided for backwards compatibility. Logs when instantiated."""
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ class PythonSafeLoader(yaml.SafeLoader, _LoaderMixin):
|
|||||||
self.secrets = secrets
|
self.secrets = secrets
|
||||||
|
|
||||||
|
|
||||||
@deprecated_class("PythonSafeLoader", breaks_in_ha_version="2024.6")
|
@deprecated_class("PythonSafeLoader")
|
||||||
class SafeLineLoader(PythonSafeLoader):
|
class SafeLineLoader(PythonSafeLoader):
|
||||||
"""Provided for backwards compatibility. Logs when instantiated."""
|
"""Provided for backwards compatibility. Logs when instantiated."""
|
||||||
|
|
||||||
|
@ -637,7 +637,7 @@ async def test_deprecated_loaders(
|
|||||||
loader_class()
|
loader_class()
|
||||||
assert (
|
assert (
|
||||||
f"{loader_class.__name__} was instantiated from hue, this is a deprecated "
|
f"{loader_class.__name__} was instantiated from hue, this is a deprecated "
|
||||||
f"class which will be removed in HA Core 2024.6. Use {new_class} instead"
|
f"class. Use {new_class} instead"
|
||||||
) in caplog.text
|
) in caplog.text
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user