From 73c5f16e6040d45b0e03d35143bcfb94abc5325f Mon Sep 17 00:00:00 2001 From: Trefor Southwell <48591903+springfall2008@users.noreply.github.com> Date: Sun, 22 Dec 2024 14:43:25 +0000 Subject: [PATCH] fix button push crash (#1780) * fix button push crash https://github.com/springfall2008/batpred/issues/1778 * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> --- apps/predbat/inverter.py | 2 +- apps/predbat/predbat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/predbat/inverter.py b/apps/predbat/inverter.py index 3623fc20..55849df0 100644 --- a/apps/predbat/inverter.py +++ b/apps/predbat/inverter.py @@ -2126,7 +2126,7 @@ def adjust_charge_window(self, charge_start_time, charge_end_time, minutes_now): if old_charge_schedule_enable == "off" or old_charge_schedule_enable == "disable": self.base.log("Inverter {} Turning on scheduled charge".format(self.id)) - def press_and_poll_button(self, entity_id): + def press_and_poll_button(self): """ Call a button press service (Solis) and wait for the data to update """ diff --git a/apps/predbat/predbat.py b/apps/predbat/predbat.py index 1c9fdc81..c5d75498 100644 --- a/apps/predbat/predbat.py +++ b/apps/predbat/predbat.py @@ -38,7 +38,7 @@ import asyncio import json -THIS_VERSION = "v8.8.12" +THIS_VERSION = "v8.8.13" # fmt: off PREDBAT_FILES = ["predbat.py", "config.py", "prediction.py", "gecloud.py","utils.py", "inverter.py", "ha.py", "download.py", "unit_test.py", "web.py", "predheat.py", "futurerate.py", "octopus.py", "solcast.py","execute.py", "plan.py", "fetch.py", "output.py", "userinterface.py"]