mirror of
https://github.com/vale981/FHEM-Log-Parser
synced 2025-03-04 17:11:38 -05:00
Fix
This commit is contained in:
parent
f821b4b209
commit
6b6621e351
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ def getHeaterSum(heater, mintime = 0, maxtime = inf):
|
||||||
session.close()
|
session.close()
|
||||||
|
|
||||||
totalHeat = 0
|
totalHeat = 0
|
||||||
|
|
||||||
|
# Filter out invalid
|
||||||
|
heaterData = [heater for heater in heaterData if not heater.actuator is None]
|
||||||
for h in range(0, len(heaterData) - 1):
|
for h in range(0, len(heaterData) - 1):
|
||||||
try:
|
try:
|
||||||
totalHeat += heaterData[h].actuator * (heaterData[h+1].time - heaterData[h].time)
|
totalHeat += heaterData[h].actuator * (heaterData[h+1].time - heaterData[h].time)
|
||||||
|
|
Loading…
Add table
Reference in a new issue