Commit 39cf448b authored by Jamie Magee's avatar Jamie Magee
Browse files

home-assistant: add tuya-device-handlers, disable flaky tests

Update component-packages.nix to include tuya-device-handlers as a
dependency of the tuya integration and add tuya to
supportedComponentsWithTests.

Disable snapshot tests that fail due to nixpkgs-specific issues:
- test_diagnostics.py: entity ordering differs because Python 3.14
  schedules async platform setup differently than 3.13.
- test_device_diagnostics[tdq_9htyiowaf5rtdhrv] and
  test_platform_setup_and_discovery: PyPI sdist translations differ
  from source strings.json ("Power-on behavior" vs "Power on behavior").
parent 4d3a18df
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6527,8 +6527,9 @@
    "tuya" =
      ps: with ps; [
        ha-ffmpeg
        tuya-device-handlers
        tuya-device-sharing-sdk
      ]; # missing inputs: tuya-device-handlers
      ];
    "twentemilieu" =
      ps: with ps; [
        twentemilieu
@@ -8196,6 +8197,7 @@
    "trend"
    "triggercmd"
    "tts"
    "tuya"
    "twentemilieu"
    "twilio"
    "twinkly"
+11 −0
Original line number Diff line number Diff line
@@ -204,6 +204,11 @@ let
      # TraneConfigFlow doesn't support step reauth
      "tests/components/trane/test_init.py::test_setup_auth_error"
    ];
    tuya = [
      # entity ordering in diagnostics is non-deterministic; fixed upstream in
      # https://github.com/home-assistant/core/pull/164819 (landing in HA 2026.4)
      "tests/components/tuya/test_diagnostics.py"
    ];
    youtube = [
      # outdated snapshot
      "tests/components/youtube/test_sensor.py::test_sensor"
@@ -237,6 +242,12 @@ let
      # tries to retrieve file from github
      "test_non_text_stdout_capture"
    ];
    tuya = [
      # snapshot mismatches: PyPI sdist translations differ from strings.json
      # ("Power-on behavior" vs "Power on behavior"); expected to resolve in HA 2026.4
      "test_device_diagnostics[tdq_9htyiowaf5rtdhrv]"
      "test_platform_setup_and_discovery"
    ];
    zeroconf = [
      # multicast socket bind, not possible in the sandbox
      "test_subscribe_discovery"