fix(hass): override intents packages for timer sentences
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-26 01:36:26 -05:00
parent c779a161b3
commit 7775cb71b6

View file

@ -11,45 +11,17 @@
services = { services = {
home-assistant = { home-assistant = {
package = package = pkgs.home-assistant.override {
(pkgs.home-assistant.override { packageOverrides = final: prev: {
packageOverrides = final: prev: { # HassTimer has way too many collisions with my custom timer sentences
# Version before HassStartTimer home-assistant-intents = prev.home-assistant-intents.overrideAttrs (o: {
home-assistant-intents = final.buildPythonPackage rec { nativeBuildInputs = o.nativeBuildInputs ++ [pkgs.findutils];
pname = "home-assistant-intents"; postPatch = ''
version = "2024.4.3"; find ./. -name "*Timer*" -delete
format = "wheel"; '';
disabled = final.pythonOlder "3.9"; });
src = final.fetchPypi {
inherit version format;
pname = "home_assistant_intents";
dist = "py3";
python = "py3";
hash = "sha256-GraYVtioKIoKlPRBhhhzlbBfI6heXAaA1MQpUqAgEDQ=";
};
build-system = [final.setuptools];
doCheck = false;
pytestFlagsArray = ["intents/tests"];
};
};
})
.overrideAttrs {
disabledTestPaths = [
# we neither run nor distribute hassfest
"tests/hassfest"
# we don't care about code quality
"tests/pylint"
# redundant component import test, which would make debugpy & sentry expensive to review
"tests/test_circular_imports.py"
# don't bulk test all components
"tests/components"
# Make old intent version build
"tests/scripts/test_check_config.py"
"tests/test_bootstrap.py"
"tests/helpers"
];
}; };
};
customComponents = builtins.attrValues { customComponents = builtins.attrValues {
inherit inherit
@ -88,6 +60,7 @@
enable = true; enable = true;
uri = "tcp://127.0.0.1:10400"; uri = "tcp://127.0.0.1:10400";
threshold = 0.55;
customModelsDirectories = ["${wakewords-src}/en/yo_homie"]; customModelsDirectories = ["${wakewords-src}/en/yo_homie"];
}; };
}; };