Skip to content

Commit

Permalink
Merge branch 'develop' into feat/update-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BottlecapDave committed Nov 18, 2023
2 parents 8dd801c + f09faeb commit d7fa78d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def state(self):
total_consumption = get_total_consumption(consumption_result)
self._state = get_current_consumption_delta(current_date,
total_consumption,
self._attributes["last_evaluated"] if self._attributes["last_evaluated"] is not None else current_date,
self._attributes["last_evaluated"] if "last_evaluated" in self._attributes and self._attributes["last_evaluated"] is not None else current_date,
self._previous_total_consumption)
if (self._state is not None):
self._latest_date = current_date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def state(self):
total_consumption = get_total_consumption(consumption_result)
self._state = get_current_consumption_delta(current_date,
total_consumption,
self._attributes["last_evaluated"] if self._attributes["last_evaluated"] is not None else current_date,
self._attributes["last_evaluated"] if "last_evaluated" in self._attributes and self._attributes["last_evaluated"] is not None else current_date,
self._previous_total_consumption)
if (self._state is not None):
self._latest_date = current_date
Expand Down

0 comments on commit d7fa78d

Please sign in to comment.