Skip to content

Commit

Permalink
fix:: add error on calculate daily total consuption
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim145 committed Jul 6, 2024
1 parent c6c5d25 commit 10235c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

if(fileDataDate < lastData.Key)
{
var allMissingWaterData = await Utils.GetDataFrom(apiClient, fileDataDate, lastData.Key, debug);
var allMissingWaterData = await Utils.GetDataFrom(apiClient, fileDataDate + TimeSpan.FromDays(1), lastData.Key, debug);

totalConsumption += allMissingWaterData.Values.Sum();

Expand Down
2 changes: 1 addition & 1 deletion addon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ CMD ["/entrypoint.sh"]
############

LABEL \
io.hass.version="0.2.2" \
io.hass.version="0.2.3" \
io.hass.type="addon" \
io.hass.arch="amd64|arm64"
2 changes: 1 addition & 1 deletion addon/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Hariane 2 MQTT"
description: "Extracts Hariane water data into MQTT a.o."
version: 0.2.2
version: 0.2.3
slug: "hariane_2_mqtt"
url: https://github.com/Dim145/Hariane2Mqtt
init: true
Expand Down

0 comments on commit 10235c6

Please sign in to comment.