Skip to content

Commit 4eb18ed

Browse files
author
Marcus Terasa
committed
Round daily consumptions
1 parent 2a2b6b9 commit 4eb18ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/foxess_api/fox_ess_cloud_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async def update_report_data(self):
181181
value_sum = 0.0
182182
for value in dataset["values"]:
183183
value_sum += float(value)
184-
self.allData["report"][variable] = value_sum
184+
self.allData["report"][variable] = round(value_sum, 3)
185185
except KeyError:
186186
LOGGER.warning("Could not parse dataset data. If this error persists, check API for changes. "
187187
"(Current version is %s)", API_VERSION)

0 commit comments

Comments
 (0)