diff --git a/pkgs/servers/home-assistant/custom-components/battery_notes/package.nix b/pkgs/servers/home-assistant/custom-components/battery_notes/package.nix new file mode 100644 index 000000000000..3ef33f9c3d60 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/battery_notes/package.nix @@ -0,0 +1,29 @@ +{ + lib, + buildHomeAssistantComponent, + fetchFromGitHub, +}: + +buildHomeAssistantComponent rec { + owner = "andrew-codechimp"; + domain = "battery_notes"; + version = "3.3.0"; + + src = fetchFromGitHub { + inherit owner; + repo = "HA-Battery-Notes"; + tag = version; + hash = "sha256-WOSWiWojT0pUhKvnl7qGvk6IHjENOy1rr0SFpTaQ0yI="; + }; + + # has no tests + doCheck = false; + + meta = { + description = "Home Assistant integration to provide battery details of devices"; + homepage = "https://github.com/andrew-codechimp/HA-Battery-Notes"; + changelog = "https://github.com/andrew-codechimp/HA-Battery-Notes/releases/tag/${src.tag}"; + maintainers = with lib.maintainers; [ SuperSandro2000 ]; + license = lib.licenses.mit; + }; +}