Skip to content

Commit

Permalink
Predheat - fix typo with flow_difference_target (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
springfall2008 authored Nov 21, 2024
1 parent 0d1cb18 commit 2d5c3ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/predbat/predheat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2d5c3ee

Please sign in to comment.