Skip to content

Commit

Permalink
Corrected check on _year_data.
Browse files Browse the repository at this point in the history
  • Loading branch information
runemoennike authored Sep 27, 2022
1 parent d997caa commit 06dca3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/eloverblik/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_total_day(self):
return None

def get_total_year(self):
if self._day_data != None:
if self._year_data != None:
return round(self._year_data.get_total_metering_data(), 3)
else:
return None
Expand Down

0 comments on commit 06dca3d

Please sign in to comment.