From 7ed8782ed3739e6f4dd0d4de2f7b4aec161543cb Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Sun, 17 Apr 2022 00:24:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ludy87 --- pyecotrend_ista/const.py | 2 +- pyecotrend_ista/pyecotrend_ista.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyecotrend_ista/const.py b/pyecotrend_ista/const.py index 689bf7f..ff8b6cb 100644 --- a/pyecotrend_ista/const.py +++ b/pyecotrend_ista/const.py @@ -1,4 +1,4 @@ -VERSION = "1.0.10" +VERSION = "1.0.11" LOGIN_HEADER = { "Accept": "application/json, text/plain, */*", "Accept-Encoding": "gzip, deflate, br", diff --git a/pyecotrend_ista/pyecotrend_ista.py b/pyecotrend_ista/pyecotrend_ista.py index 6499def..f257faf 100644 --- a/pyecotrend_ista/pyecotrend_ista.py +++ b/pyecotrend_ista/pyecotrend_ista.py @@ -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()