diff --git a/homeassistant/util/yaml/loader.py b/homeassistant/util/yaml/loader.py index 0d06ddfb757..275a51cd760 100644 --- a/homeassistant/util/yaml/loader.py +++ b/homeassistant/util/yaml/loader.py @@ -137,7 +137,7 @@ class FastSafeLoader(FastestAvailableSafeLoader, _LoaderMixin): self.secrets = secrets -@deprecated_class("FastSafeLoader", breaks_in_ha_version="2024.6") +@deprecated_class("FastSafeLoader") class SafeLoader(FastSafeLoader): """Provided for backwards compatibility. Logs when instantiated.""" @@ -151,7 +151,7 @@ class PythonSafeLoader(yaml.SafeLoader, _LoaderMixin): self.secrets = secrets -@deprecated_class("PythonSafeLoader", breaks_in_ha_version="2024.6") +@deprecated_class("PythonSafeLoader") class SafeLineLoader(PythonSafeLoader): """Provided for backwards compatibility. Logs when instantiated.""" diff --git a/tests/util/yaml/test_init.py b/tests/util/yaml/test_init.py index a96d08933ee..6f6f48813ce 100644 --- a/tests/util/yaml/test_init.py +++ b/tests/util/yaml/test_init.py @@ -637,7 +637,7 @@ async def test_deprecated_loaders( loader_class() assert ( 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