From 3a593998807055d09adce4919fcde79c73d4f1fb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 1 Apr 2026 11:29:00 +0200 Subject: [PATCH] home-assistant-custom-components.frigate: fix build --- .../custom-components/frigate/package.nix | 5 +++++ .../frigate/service-to-action.patch | 21 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/frigate/service-to-action.patch diff --git a/pkgs/servers/home-assistant/custom-components/frigate/package.nix b/pkgs/servers/home-assistant/custom-components/frigate/package.nix index 641b20bafbd4..6b83f51daafd 100644 --- a/pkgs/servers/home-assistant/custom-components/frigate/package.nix +++ b/pkgs/servers/home-assistant/custom-components/frigate/package.nix @@ -28,6 +28,11 @@ buildHomeAssistantComponent rec { hash = "sha256-fgsYznTqJrEh4niyGfksnflRp1PpljrlzJBvs8gKn54="; }; + patches = [ + # https://github.com/blakeblackshear/frigate-hass-integration/pull/1070 + ./service-to-action.patch + ]; + dependencies = [ hass-web-proxy-lib titlecase diff --git a/pkgs/servers/home-assistant/custom-components/frigate/service-to-action.patch b/pkgs/servers/home-assistant/custom-components/frigate/service-to-action.patch new file mode 100644 index 000000000000..5bc2bbda90d0 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/frigate/service-to-action.patch @@ -0,0 +1,21 @@ +index 9d3ba82..dabf566 100644 +--- a/tests/test_integration_services.py ++++ b/tests/test_integration_services.py +@@ -137,7 +137,7 @@ async def test_review_summarize_service_version_check( + await setup_mock_frigate_config_entry(hass, client=client) + + # Verify service is not available (should not be registered for version < 0.17) +- with pytest.raises(Exception, match="service_not_found"): ++ with pytest.raises(Exception, match="Action frigate.review_summarize not found"): + await hass.services.async_call( + "frigate", + SERVICE_REVIEW_SUMMARIZE, +@@ -156,7 +156,7 @@ async def test_review_summarize_service_no_integration( + # Don't set up any Frigate integration + + # When no integration is configured, the service won't exist +- with pytest.raises(Exception, match="service_not_found"): ++ with pytest.raises(Exception, match="Action frigate.review_summarize not found"): + await hass.services.async_call( + "frigate", + SERVICE_REVIEW_SUMMARIZE,