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 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, "")