From e1ffb0a00aadf12c5c088e3453e3855944271975 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sat, 14 Dec 2024 21:04:34 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- apps/predbat/predheat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/predbat/predheat.py b/apps/predbat/predheat.py index 53289f1d..30ba3f47 100644 --- a/apps/predbat/predheat.py +++ b/apps/predbat/predheat.py @@ -88,7 +88,7 @@ def fill_table_gaps(self, table): for key in range(min_key, max_key + 1): if key not in table: next_value = last_value - for next_key in range (key + 1, max_key + 1): + for next_key in range(key + 1, max_key + 1): if next_key in table: next_value = table[next_key] break @@ -363,7 +363,6 @@ def run_simulation(self, volume_temp, heating_active, save="best", last_predict_ # self.log("Minute {} flow {} volume {} diff {} power {} kw".format(minute, flow_temp, volume_temp, flow_temp_diff, heat_power_in / 1000.0)) - if self.mode == "gas": # Gas boiler flow temperature adjustment in efficiency based on flow temp inlet_temp = int(volume_temp + 0.5)