From e7fb9508f2c69fe66c7d44380e405e667c23a4b5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jul 2026 13:16:53 +0200 Subject: [PATCH] home-assistant: adjust test dependencies --- pkgs/servers/home-assistant/tests.nix | 34 ++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/home-assistant/tests.nix b/pkgs/servers/home-assistant/tests.nix index d4ac5634c5da..a78551cb3eaa 100644 --- a/pkgs/servers/home-assistant/tests.nix +++ b/pkgs/servers/home-assistant/tests.nix @@ -2,6 +2,7 @@ lib, stdenv, home-assistant, + writableTmpDirAsHomeHook, }: let @@ -15,10 +16,12 @@ let "frontend" "stream" ]; + analytics = getComponentDeps "homeassistant_hardware"; anthropic = getComponentDeps "ai_task" ++ getComponentDeps "openai_conversation"; assist_pipeline = getComponentDeps "frontend"; automation = getComponentDeps "frontend" ++ getComponentDeps "mobile_app"; axis = getComponentDeps "deconz"; + backup = getComponentDeps "homeassistant_hardware"; bluetooth = getComponentDeps "switchbot"; braviatv = getComponentDeps "ssdp"; bthome = getComponentDeps "frontend"; @@ -28,6 +31,7 @@ let emulated_hue = [ defusedxml ]; + esphome = getComponentDeps "homeassistant_hardware"; gardena_bluetooth = getComponentDeps "husqvarna_automower_ble"; go2rtc = [ tqdm @@ -44,7 +48,11 @@ let homeassistant_sky_connect = getComponentDeps "zha"; homeassistant_yellow = getComponentDeps "zha"; homekit = getComponentDeps "frontend"; - http = getComponentDeps "cloud" ++ getComponentDeps "frontend"; + http = concatMap getComponentDeps [ + "cloud" + "frontend" + "homeassistant_hardware" + ]; intelliclima = getComponentDeps "intellifire"; logbook = getComponentDeps "alexa"; lovelace = getComponentDeps "frontend" ++ [ @@ -54,9 +62,11 @@ let mastodon = concatMap getComponentDeps [ "stream" ]; + matter = getComponentDeps "homeassistant_hardware"; miele = getComponentDeps "cloud"; mobile_app = getComponentDeps "frontend"; mopeka = getComponentDeps "switchbot"; + mqtt = getComponentDeps "homeassistant_hardware"; nest = [ av ]; @@ -65,8 +75,14 @@ let pymetno radios rpi-bad-power - ]; + ] + ++ getComponentDeps "homeassistant_hardware" + ++ getComponentDeps "usb"; open_router = getComponentDeps "ai_task"; + osoenergy = [ + # loguru wants to write into HOME + writableTmpDirAsHomeHook + ]; raspberry_pi = [ rpi-bad-power ]; @@ -91,10 +107,14 @@ let yolink = getComponentDeps "cloud"; zeroconf = getComponentDeps "shelly"; zha = getComponentDeps "deconz" ++ getComponentDeps "frontend"; - zwave_js = getComponentDeps "frontend"; + zwave_js = getComponentDeps "frontend" ++ getComponentDeps "homeassistant_hardware"; }; extraDisabledTestPaths = { + bluetooth = [ + # [2026.7.1] Fails to replace HCI device after advertisement became stale + "tests/components/bluetooth/test_manager.py::test_switching_adapters_based_on_stale_with_discovered_interval" + ]; influxdb = [ # These tests fail because they check for the number of warnings in the # logs and there is an extra warning in the logs: @@ -122,6 +142,10 @@ let }; extraDisabledTests = { + bsblan = [ + # [2026.7.1] outdated snapshot + "test_diagnostics" + ]; conversation = lib.optionals stdenv.hostPlatform.isAarch64 [ # intent fixture mismatch on aarch64 "test_error_no_device_on_floor" @@ -139,6 +163,10 @@ let # https://github.com/home-assistant/core/pull/172909 "test_upload_image_device_not_in_range" ]; + smlight = [ + # [2026.7.1] outdated snapshot + "test_entry_diagnostics" + ]; teslemetry = [ # [2026.6.4] http://github.com/home-assistant/core/commit/a33a92982af19e682a0d0fa7bec0cb16929c00d1 "test_sensors"