From 202d8d418e3194de15abcce23a9629f3b532b7d5 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 22 Jul 2024 06:07:16 -0600 Subject: sys/home-assistant: enable smartthinq-sensors --- pkgs/smartthinq-sensors.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/smartthinq-sensors.nix (limited to 'pkgs/smartthinq-sensors.nix') diff --git a/pkgs/smartthinq-sensors.nix b/pkgs/smartthinq-sensors.nix new file mode 100644 index 0000000..20a2cdc --- /dev/null +++ b/pkgs/smartthinq-sensors.nix @@ -0,0 +1,31 @@ +{ buildHomeAssistantComponent +, callPackage +, fetchFromGitHub +, charset-normalizer +, pycountry +, xmltodict +}: +let + version = "0.39.2"; +in +buildHomeAssistantComponent { + owner = "ollo69"; + domain = "smartthinq_sensors"; + inherit version; + + src = fetchFromGitHub { + repo = "ha-smartthinq-sensors"; + owner = "ollo69"; + + rev = "v${version}"; + hash = "sha256-tLq4sqeKmjEDDaowA8ouH/mI7jQfq49kkt/a8+40rhQ="; + }; + + dontBuild = true; + + propagatedBuildInputs = [ + charset-normalizer + pycountry + xmltodict + ]; +} -- cgit v1.2.3