Commit 389833eb authored by Ivan Kozik's avatar Ivan Kozik
Browse files

home-assistant-custom-components.sensi: init at 1.3.1

parent b286b8df
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -26,5 +26,7 @@

  prometheus_sensor = callPackage ./prometheus_sensor {};

  sensi = callPackage ./sensi {};

  waste_collection_schedule = callPackage ./waste_collection_schedule {};
}
+30 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildHomeAssistantComponent,
  websockets,
}:
buildHomeAssistantComponent rec {
  owner = "iprak";
  domain = "sensi";
  version = "1.3.1";

  src = fetchFromGitHub {
    inherit owner;
    repo = domain;
    rev = "refs/tags/v${version}";
    hash = "sha256-RF182b6OBpoXfDsalwZntuaN8VxkQK2jy9qa0zNFQdI=";
  };

  propagatedBuildInputs = [
    websockets
  ];

  meta = with lib; {
    changelog = "https://github.com/iprak/sensi/releases/tag/v${version}";
    description = "HomeAssistant integration for Sensi thermostat";
    homepage = "https://github.com/iprak/sensi";
    maintainers = with maintainers; [ ivan ];
    license = licenses.mit;
  };
}