Skip to content

Commit

Permalink
Remove breaks_in_ha_version from deprecated YAML classes (home-assist…
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Dec 5, 2023
1 parent 5cab64b commit ae002e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homeassistant/util/yaml/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand All @@ -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."""

Expand Down
2 changes: 1 addition & 1 deletion tests/util/yaml/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit ae002e2

Please sign in to comment.