Skip to content

Commit

Permalink
Weather comp fixes (#1754)
Browse files Browse the repository at this point in the history
* Weather comp fixes

* Take 2
  • Loading branch information
springfall2008 authored Dec 18, 2024
1 parent fcb5d3d commit 9332088
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/predbat/predheat.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def fill_table_gaps(self, table):
last_key = min_key
last_value = table[min_key]
new_table = {}

if not table:
return table

for key in range(min_key, max_key + 1):
if key not in table:
next_value = last_value
Expand Down

0 comments on commit 9332088

Please sign in to comment.