Skip to content

Commit

Permalink
fix #29
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalo Zsombor committed Apr 2, 2024
1 parent 72560d1 commit b754e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/w1000-energy-monitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ async def read_reportid(self, reportid: int, reportname: str, ssl=True):
sum=round(hourly_sum, 3)
)
)
if data['time'] > lasttime:
if lasttime and ( data['time'] > lasttime ) :
lasttime = data['time']
lastvalue = round(hourly_sum, 3)
else:
Expand Down

0 comments on commit b754e27

Please sign in to comment.