Date: Thu, 26 Mar 2026 14:49:44 +0000 From: Ryan Steinmetz <zi@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 28324fef7bf1 - main - net-mgmt/py-pypowerwall: Fix runtime error, bump PORTREVISION Message-ID: <69c54788.20400.19e8daee@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by zi: URL: https://cgit.FreeBSD.org/ports/commit/?id=28324fef7bf14cc5988a122b9ff992a8f4075b3a commit 28324fef7bf14cc5988a122b9ff992a8f4075b3a Author: Ryan Steinmetz <zi@FreeBSD.org> AuthorDate: 2026-03-26 14:49:39 +0000 Commit: Ryan Steinmetz <zi@FreeBSD.org> CommitDate: 2026-03-26 14:49:39 +0000 net-mgmt/py-pypowerwall: Fix runtime error, bump PORTREVISION --- net-mgmt/py-pypowerwall/Makefile | 1 + .../files/patch-pypowerwall_tedapi_____init____.py | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/net-mgmt/py-pypowerwall/Makefile b/net-mgmt/py-pypowerwall/Makefile index 457993740ad4..5a04a08d936d 100644 --- a/net-mgmt/py-pypowerwall/Makefile +++ b/net-mgmt/py-pypowerwall/Makefile @@ -1,6 +1,7 @@ PORTNAME= pypowerwall PORTVERSION= 0.14.10 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net-mgmt python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/net-mgmt/py-pypowerwall/files/patch-pypowerwall_tedapi_____init____.py b/net-mgmt/py-pypowerwall/files/patch-pypowerwall_tedapi_____init____.py new file mode 100644 index 000000000000..81c201d91c48 --- /dev/null +++ b/net-mgmt/py-pypowerwall/files/patch-pypowerwall_tedapi_____init____.py @@ -0,0 +1,11 @@ +--- pypowerwall/tedapi/__init__.py.orig 2026-02-22 08:00:17 UTC ++++ pypowerwall/tedapi/__init__.py +@@ -304,6 +304,8 @@ class TEDAPI: + except json.JSONDecodeError as e: + log.error(f"Error Decoding JSON: {e}") + data = {} ++ if 'battery_blocks' not in data: ++ data["battery_blocks"] = [] + log.debug(f"Configuration: {data}") + self.pwcachetime["config"] = time.time() + self.pwcache["config"] = datahome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69c54788.20400.19e8daee>
