From eae7d711760d1b84e6d29b6f114728d304d8e293 Mon Sep 17 00:00:00 2001 From: raph666 Date: Tue, 21 Jul 2026 14:55:12 +0200 Subject: [PATCH] Update diagnostics version test --- tests/test_diagnostics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_diagnostics.py b/tests/test_diagnostics.py index 11733ca..611d328 100644 --- a/tests/test_diagnostics.py +++ b/tests/test_diagnostics.py @@ -16,6 +16,7 @@ from custom_components.arkteos.parser import filter_values, parse_frame FIXTURES = Path(__file__).parent / "fixtures" +MANIFEST = Path(__file__).parents[1] / "custom_components" / "arkteos" / "manifest.json" HOST = "arkteos.local" @@ -51,7 +52,7 @@ async def test_diagnostics_are_redacted_and_serializable(hass) -> None: assert isinstance(diagnostics, dict) assert diagnostics["integration"]["domain"] == DOMAIN - assert diagnostics["integration"]["version"] == "0.1.0" + assert diagnostics["integration"]["version"] == json.loads(MANIFEST.read_text())["version"] assert diagnostics["integration"]["configuration"][CONF_PORT] == DEFAULT_PORT assert HOST not in json.dumps(diagnostics) assert diagnostics["client"] == {