From 475452a88fa36d6bb0ac8a8ec6cde02582933bba Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 7 Apr 2024 09:17:39 +0300 Subject: [PATCH] home-assistant-custom-components.smartthinq-sensors: init at 0.39.0 --- .../custom-components/default.nix | 2 ++ .../smartthinq-sensors/default.nix | 34 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/smartthinq-sensors/default.nix diff --git a/pkgs/servers/home-assistant/custom-components/default.nix b/pkgs/servers/home-assistant/custom-components/default.nix index ad63a4bdc0b6..449c5ee0eb06 100644 --- a/pkgs/servers/home-assistant/custom-components/default.nix +++ b/pkgs/servers/home-assistant/custom-components/default.nix @@ -32,5 +32,7 @@ sensi = callPackage ./sensi {}; + smartthinq-sensors = callPackage ./smartthinq-sensors {}; + waste_collection_schedule = callPackage ./waste_collection_schedule {}; } diff --git a/pkgs/servers/home-assistant/custom-components/smartthinq-sensors/default.nix b/pkgs/servers/home-assistant/custom-components/smartthinq-sensors/default.nix new file mode 100644 index 000000000000..3ebb482939dc --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/smartthinq-sensors/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildHomeAssistantComponent +, fetchFromGitHub +, charset-normalizer +, pycountry +, xmltodict +}: + +buildHomeAssistantComponent rec { + owner = "ollo69"; + domain = "smartthinq_sensors"; + version = "0.39.0"; + + src = fetchFromGitHub { + inherit owner; + repo = "ha-smartthinq-sensors"; + rev = "v${version}"; + hash = "sha256-mt5/XHDAUeoMUA1jWdCNXTUgZBQkqabL5Y4MxwxcweY="; + }; + + propagatedBuildInputs = [ + charset-normalizer + pycountry + xmltodict + ]; + + meta = with lib; { + description = "Home Assistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface"; + homepage = "https://github.com/ollo69/ha-smartthinq-sensors"; + changelog = "https://github.com/ollo69/ha-smartthinq-sensors/releases/tag/v${version}"; + maintainers = with maintainers; [ k900 ]; + license = licenses.asl20; + }; +}