Merge pull request #173083 from dotlambda/tesla-powerwall-init

home-assistant: support powerwall component
This commit is contained in:
Fabian Affolter 2022-05-15 11:30:29 +02:00 committed by GitHub
commit 81626bf4a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 1 deletions

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, pytestCheckHook
, responses
}:
buildPythonPackage rec {
pname = "tesla-powerwall";
version = "0.3.17";
format = "setuptools";
src = fetchPypi {
pname = "tesla_powerwall";
inherit version;
sha256 = "09351e408e8e3cc03414944c1a487ef2178300829559e80835026acb84330cfd";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
pytestCheckHook
responses
];
pytestFlagsArray = [
"tests/unit"
];
pythonImportsCheck = [ "tesla_powerwall" ];
meta = {
description = "API for Tesla Powerwall";
homepage = "https://github.com/jrester/tesla_powerwall";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -2032,7 +2032,8 @@
poolsense
];
"powerwall" = ps: with ps; [
]; # missing inputs: tesla-powerwall
tesla-powerwall
];
"profiler" = ps: with ps; [
guppy3
objgraph
@ -3557,6 +3558,7 @@
"plugwise"
"point"
"poolsense"
"powerwall"
"profiler"
"prometheus"
"prosegur"

View file

@ -10189,6 +10189,8 @@ in {
tern = callPackage ../development/python-modules/tern { };
tesla-powerwall = callPackage ../development/python-modules/tesla-powerwall { };
tesla-wall-connector = callPackage ../development/python-modules/tesla-wall-connector { };
teslajsonpy = callPackage ../development/python-modules/teslajsonpy { };