acc cost filter
Some checks are pending
Docker Build and Push / build-and-push (push) Waiting to run
Some checks are pending
Docker Build and Push / build-and-push (push) Waiting to run
This commit is contained in:
parent
b13d3e6857
commit
336eefb963
2 changed files with 3 additions and 3 deletions
2
DataPoints.py
Normal file → Executable file
2
DataPoints.py
Normal file → Executable file
|
@ -14,7 +14,7 @@ class Pulse:
|
|||
"power": float(power),
|
||||
"lastMeterConsumption": float(lastMeterConsumption)
|
||||
}
|
||||
if cost is not None:
|
||||
if cost is not None and float(cost) > 0:
|
||||
fields.update({'accumulatedCost':cost})
|
||||
self.datapoint = {"fields": fields,
|
||||
"tags": tags,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue