ha-mcp, home-assistant-custom-components.ha_mcp_tools: restrict update script to release versions (#490553)

This commit is contained in:
Martin Weinelt
2026-02-15 03:22:12 +00:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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 = {
@@ -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";