Improve (and align) deprecation messages (#147948)

This commit is contained in:
epenet
2025-07-05 00:02:36 +02:00
committed by GitHub
parent 528daad854
commit 76be2fdba1
7 changed files with 44 additions and 41 deletions

View File

@@ -359,8 +359,8 @@ def test_deprecated_json_loads(caplog: pytest.LogCaptureFixture) -> None:
"""
json_helper.json_loads("{}")
assert (
"json_loads is a deprecated function which will be removed in "
"HA Core 2025.8. Use homeassistant.util.json.json_loads instead"
"The deprecated function json_loads was called. It will be removed "
"in HA Core 2025.8. Use homeassistant.util.json.json_loads instead"
) in caplog.text