home-assistant: support vegehub component (#425966)

This commit is contained in:
dotlambda
2025-07-21 12:25:07 -07:00
committed by GitHub
3 changed files with 53 additions and 1 deletions
@@ -0,0 +1,48 @@
{
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
lib,
poetry-core,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "vegehub";
version = "0.1.24";
pyproject = true;
src = fetchFromGitHub {
owner = "Thulrus";
repo = "VegeHubPyPiLib";
tag = "V${version}";
hash = "sha256-W/5kvertNC7w2IS/N5k06cDyNFgel2s4/znR+Lz5RJU=";
};
postPatch = ''
rm -r dist
'';
build-system = [ poetry-core ];
dependencies = [
aiohttp
];
pythonImportsCheck = [ "vegehub" ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
meta = {
description = "Basic package for simplifying interactions with the Vegetronix VegeHub";
homepage = "https://github.com/Thulrus/VegeHubPyPiLib";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
@@ -6296,7 +6296,8 @@
];
"vegehub" =
ps: with ps; [
]; # missing inputs: vegehub
vegehub
];
"velbus" =
ps: with ps; [
aiousbwatcher
@@ -7688,6 +7689,7 @@
"vacuum"
"vallox"
"valve"
"vegehub"
"velbus"
"velux"
"venstar"
+2
View File
@@ -19209,6 +19209,8 @@ self: super: with self; {
vega-datasets = callPackage ../development/python-modules/vega-datasets { };
vegehub = callPackage ../development/python-modules/vegehub { };
vehicle = callPackage ../development/python-modules/vehicle { };
velbus-aio = callPackage ../development/python-modules/velbus-aio { };