Unverified Commit 17173c33 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

ha-mcp, home-assistant-custom-components.ha_mcp_tools: restrict update script...

ha-mcp, home-assistant-custom-components.ha_mcp_tools: restrict update script to release versions (#490553)
parents de140dbd 4ec7062e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  python3Packages,
  fetchFromGitHub,
  nix-update-script,
}:

python3Packages.buildPythonApplication (finalAttrs: {
@@ -37,6 +38,10 @@ python3Packages.buildPythonApplication (finalAttrs: {
  # Tests require a running Home Assistant instance
  doCheck = false;

  passthru.updateScript = nix-update-script {
    extraArgs = [ "--version-regex=^v([0-9]+\\.[0-9]+\\.[0-9]+)$" ];
  };

  pythonImportsCheck = [ "ha_mcp" ];

  meta = {
+5 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildHomeAssistantComponent,
  fetchFromGitHub,
  nix-update-script,
}:

buildHomeAssistantComponent rec {
@@ -16,6 +17,10 @@ buildHomeAssistantComponent rec {
    hash = "sha256-yAJbvfIH5ewRTip8whbOKxE479qAihESaiLFTnhpRkY=";
  };

  passthru.updateScript = nix-update-script {
    extraArgs = [ "--version-regex=^v([0-9]+\\.[0-9]+\\.[0-9]+)$" ];
  };

  meta = {
    changelog = "https://github.com/homeassistant-ai/ha-mcp/releases/tag/v${version}";
    description = "Home Assistant custom component for the MCP (Model Context Protocol) server";