fix avahi

This commit is contained in:
mjallen18
2026-03-31 13:33:42 -05:00
parent 6ca55504f0
commit bd799661b9
59 changed files with 3758 additions and 3829 deletions

View File

@@ -1,22 +1,29 @@
{
lib,
namespace,
pkgs,
buildHomeAssistantComponent,
fetchFromGitHub,
home-assistant,
...
}:
buildHomeAssistantComponent rec {
owner = "HASwitchPlate";
let
inherit (lib.trivial) importJSON;
inherit (lib.${namespace}) selectVariant mkAllSources;
versionSpec = importJSON ./version.json;
selected = selectVariant versionSpec null null;
sources = mkAllSources pkgs selected;
src-meta = selected.sources.openhasp;
version = if src-meta ? tag then src-meta.tag else src-meta.rev;
in
buildHomeAssistantComponent {
owner = src-meta.owner;
domain = "openhasp";
version = "0.7.8";
inherit version;
src = fetchFromGitHub {
owner = owner;
repo = "openHASP-custom-component";
rev = version;
hash = "sha256-5h1EqwpnsmWexqB3J/X4OcN9bfBYUxGxLF1Hrmoi5LY=";
};
src = sources.openhasp;
# Use HA's own Python (3.14) packages to satisfy the manifest check for jsonschema
# Use HA's own Python packages to satisfy the manifest check for jsonschema
nativeBuildInputs = [ home-assistant.python.pkgs.jsonschema ];
meta = {