diff --git a/homeassistant/util/yaml/loader.py b/homeassistant/util/yaml/loader.py index 0d06ddfb757f32..275a51cd760d77 100644 --- a/homeassistant/util/yaml/loader.py +++ b/homeassistant/util/yaml/loader.py @@ -137,7 +137,7 @@ def __init__(self, stream: Any, secrets: Secrets | None = None) -> None: 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 @@ def __init__(self, stream: Any, secrets: Secrets | None = None) -> None: 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 a96d08933eed55..6f6f48813cec13 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