Skip to content

Commit

Permalink
Counter param starts at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Dec 29, 2023
1 parent ee03be5 commit 2f88fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypowerwall/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def get_site_power(self):
"""
# GET api/1/energy_sites/{site_id}/live_status?counter={counter}&language=en
(response, cached) = self._site_api("SITE_DATA",
self.pwcacheexpire, counter=self.counter, language="en")
self.pwcacheexpire, counter=self.counter+1, language="en")
if not cached:
self.counter = (self.counter + 1) % COUNTER_MAX
return response
Expand Down

0 comments on commit 2f88fbb

Please sign in to comment.