Skip to content

Commit

Permalink
home-assistant.custom-components.govee-lan: init at unstable-2023-06-10
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Oct 21, 2023
1 parent 4aa225d commit 1d190eb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/servers/home-assistant/custom-components/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
}:

{
govee-lan = callPackage ./govee-lan {};

prometheus-sensor = callPackage ./prometheus-query {};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, fetchFromGitHub
, govee-led-wez
, home-assistant
}:

home-assistant.buildCustomComponent {
pname = "govee_lan";
version = "unstable-2023-06-10";
format = "other";

src = fetchFromGitHub {
owner = "wez";
repo = "govee-lan-hass";
rev = "18d8455510d158496f7e5d4f0286f58bd61042bb";
hash = "sha256-ZhrxEPBEi+Z+2ZOAQ1amhO0tqvhM6tyFQgoRIVNDtXY=";
};

dontBuild = true;

propagatedBuildInputs = [
govee-led-wez
];

# enable when pytest-homeassistant-custom-component is packaged
doCheck = false;

# nativeCheckInputs = [
# pytest-homeassistant-custom-component
# pytestCheckHook
# ];

meta = with lib; {
description = "Control Govee lights via the LAN API from Home Assistant";
homepage = "https://github.com/wez/govee-lan-hass";
maintainers = with maintainers; [ SuperSandro2000 ];
license = licenses.mit;
};
}

0 comments on commit 1d190eb

Please sign in to comment.