From 2d5c3ee94a31f398c77823a0a07dfd84737bebaf Mon Sep 17 00:00:00 2001 From: Trefor Southwell <48591903+springfall2008@users.noreply.github.com> Date: Thu, 21 Nov 2024 08:04:24 +0000 Subject: [PATCH] Predheat - fix typo with flow_difference_target (#1641) --- apps/predbat/predheat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/predbat/predheat.py b/apps/predbat/predheat.py index abfd6b2d..43dd54b9 100644 --- a/apps/predbat/predheat.py +++ b/apps/predbat/predheat.py @@ -514,7 +514,10 @@ def update_pred(self, scheduled): self.mode = self.get_arg("mode", "pump", domain="predheat") self.flow_temp = self.get_arg("flow_temp", 40.0, domain="predheat") - self.flow_difference_target = self.get_arg("float_difference_target", 20.0, domain="predheat") + if self.mode == "gas": + self.flow_difference_target = self.get_arg("flow_difference_target", 20.0, domain="predheat") + else: + self.flow_difference_target = self.get_arg("flow_difference_target", 5, domain="predheat") self.log("Predheat: has {} days of historical data".format(self.minute_data_age)) self.heat_loss_watts = self.get_arg("heat_loss_watts", 100, domain="predheat") self.heat_loss_degrees = self.get_arg("heat_loss_degrees", 0.02, domain="predheat")