From 9332088864de9fb87cef93bc8b9a7e3c110cdd8b Mon Sep 17 00:00:00 2001 From: Trefor Southwell <48591903+springfall2008@users.noreply.github.com> Date: Wed, 18 Dec 2024 22:38:57 +0000 Subject: [PATCH] Weather comp fixes (#1754) * Weather comp fixes * Take 2 --- apps/predbat/predheat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/predbat/predheat.py b/apps/predbat/predheat.py index 190a5f89..c43c912b 100644 --- a/apps/predbat/predheat.py +++ b/apps/predbat/predheat.py @@ -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