From 9bef0363e3385a7f1e1622c41222c5af6b1d22a8 Mon Sep 17 00:00:00 2001 From: Trefor Southwell Date: Sat, 20 Jun 2026 20:59:30 +0100 Subject: [PATCH 1/2] Fix web crash --- apps/predbat/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/predbat/web.py b/apps/predbat/web.py index 411e29209..b5578e57b 100644 --- a/apps/predbat/web.py +++ b/apps/predbat/web.py @@ -3380,7 +3380,7 @@ async def html_apps(self, request): for arg in args: value = args[arg] raw_value = self.resolve_value_raw(arg, value) - if ("_key" in arg) or ("_password" in arg) or ("_secret" in arg) or ("_pem" in arg): + if isinstance(arg, str) and (("_key" in arg) or ("_password" in arg) or ("_secret" in arg) or ("_pem" in arg)): value = ' (hidden)'.format(value) arg_errors = self.base.arg_errors.get(arg, "") From 6e5a44869033fc181b63e1ef73e8f503793e4ca5 Mon Sep 17 00:00:00 2001 From: Trefor Southwell <48591903+springfall2008@users.noreply.github.com> Date: Sat, 20 Jun 2026 21:00:41 +0100 Subject: [PATCH 2/2] Update predbat.py --- apps/predbat/predbat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/predbat/predbat.py b/apps/predbat/predbat.py index 306da5a32..cb8922e4a 100644 --- a/apps/predbat/predbat.py +++ b/apps/predbat/predbat.py @@ -35,7 +35,7 @@ import pytz import asyncio -THIS_VERSION = "v8.40.15" +THIS_VERSION = "v8.40.16" from download import predbat_update_move, predbat_update_download, check_install, DEFAULT_PREDBAT_REPOSITORY from const import MINUTE_WATT