diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-07-22 06:07:16 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-07-25 21:13:21 -0600 |
| commit | 202d8d418e3194de15abcce23a9629f3b532b7d5 (patch) | |
| tree | 2851590c60695296f1abc3bd2c2885ee26e09807 /pkgs | |
| parent | e1639d69d7d1a1bfbc21aeef284f0c039053dfbe (diff) | |
sys/home-assistant: enable smartthinq-sensors
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/default.nix | 1 | ||||
| -rw-r--r-- | pkgs/smartthinq-sensors.nix | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index deb418b..fa1a0e0 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -30,6 +30,7 @@ in override = { home-assistant-custom-components = prev.home-assistant-custom-components // { dreame_vacuum = final.home-assistant.python.pkgs.callPackage ./dreame-vacuum.nix { }; + smartthinq_sensors = final.home-assistant.python.pkgs.callPackage ./smartthinq-sensors.nix { }; }; home-assistant-custom-lovelace-modules = prev.home-assistant-custom-lovelace-modules // { 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 + ]; +} |
