Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Dec 14, 2024
1 parent 1ec2bea commit e1ffb0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/predbat/predheat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e1ffb0a

Please sign in to comment.