Skip to content

Commit

Permalink
Ignore huge value (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetienne authored Aug 24, 2021
1 parent d20b8ce commit 3400b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/veolia/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def _get_consumption():
if (
previous_data
and previous_data[LAST_REPORT_TIMESTAMP] == last_report_timestamp
and previous_data[DAILY][-1] > 0
and 0 < previous_data[DAILY][-1] < 10000
):
return previous_data

Expand Down

0 comments on commit 3400b1e

Please sign in to comment.