Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
Signed-off-by: Ludy87 <Ludy87@users.noreply.github.com>
  • Loading branch information
Ludy87 committed Apr 16, 2022
1 parent eb5c91a commit 7ed8782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyecotrend_ista/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "1.0.10"
VERSION = "1.0.11"
LOGIN_HEADER = {
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate, br",
Expand Down
4 changes: 2 additions & 2 deletions pyecotrend_ista/pyecotrend_ista.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ def getSupportCode(self):
return self._supportCode

async def consum_small(self):
consum_raw: list = [] # await self.consum_raw()
consum_raw: list = [] # = await self.consum_raw()
consum_now: list = []
retryCounter = 0
while(consum_raw and ('consumptions' not in consum_raw) and (retryCounter < self.maxRetries + 2)):
while(not consum_raw and ('consumptions' not in consum_raw) and (retryCounter < self.maxRetries + 2)):
retryCounter += 1
await self.login()
consum_raw = await self.consum_raw()
Expand Down

0 comments on commit 7ed8782

Please sign in to comment.