Merge pull request #173083 from dotlambda/tesla-powerwall-init
home-assistant: support powerwall component
This commit is contained in:
commit
81626bf4a8
3 changed files with 47 additions and 1 deletions
42
pkgs/development/python-modules/tesla-powerwall/default.nix
Normal file
42
pkgs/development/python-modules/tesla-powerwall/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue