e-data 2.0.0.dev120__tar.gz → 2.0.0.dev121__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {e_data-2.0.0.dev120/e_data.egg-info → e_data-2.0.0.dev121}/PKG-INFO +1 -1
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121/e_data.egg-info}/PKG-INFO +1 -1
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/providers/datadis.py +5 -5
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/pyproject.toml +1 -1
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/LICENSE +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/MANIFEST.in +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/README.md +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/e_data.egg-info/SOURCES.txt +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/e_data.egg-info/dependency_links.txt +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/e_data.egg-info/requires.txt +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/e_data.egg-info/top_level.txt +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/__init__.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/cli.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/core/__init__.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/core/const.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/core/utils.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/database/__init__.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/database/controller.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/database/models.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/database/queries.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/database/utils.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/models/__init__.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/models/bill.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/models/data.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/models/supply.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/providers/__init__.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/providers/redata.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/services/bill_service.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/services/data_service.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/tests/__init__.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/tests/test_datadis_connector.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/tests/test_redata_connector.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/edata/tests/test_services.py +0 -0
- {e_data-2.0.0.dev120 → e_data-2.0.0.dev121}/setup.cfg +0 -0
|
@@ -166,7 +166,7 @@ class DatadisConnector:
|
|
|
166
166
|
refresh_token: bool = False,
|
|
167
167
|
is_retry: bool = False,
|
|
168
168
|
ignore_cache: bool = False,
|
|
169
|
-
) ->
|
|
169
|
+
) -> dict[str, typing.Any]:
|
|
170
170
|
"""Async get request for Datadis API."""
|
|
171
171
|
|
|
172
172
|
if request_data is None:
|
|
@@ -175,7 +175,7 @@ class DatadisConnector:
|
|
|
175
175
|
data = request_data
|
|
176
176
|
|
|
177
177
|
is_valid_token = False
|
|
178
|
-
response =
|
|
178
|
+
response = {}
|
|
179
179
|
if refresh_token:
|
|
180
180
|
is_valid_token = await self._async_get_token()
|
|
181
181
|
if is_valid_token or not refresh_token:
|
|
@@ -201,7 +201,7 @@ class DatadisConnector:
|
|
|
201
201
|
if _cache is not None:
|
|
202
202
|
_LOGGER.info("CACHED %s", url + anonym_params)
|
|
203
203
|
return _cache # type: ignore
|
|
204
|
-
return
|
|
204
|
+
return {}
|
|
205
205
|
|
|
206
206
|
try:
|
|
207
207
|
_LOGGER.info("GET %s", url + anonym_params)
|
|
@@ -272,10 +272,10 @@ class DatadisConnector:
|
|
|
272
272
|
)
|
|
273
273
|
except asyncio.TimeoutError:
|
|
274
274
|
_LOGGER.warning("Timeout at %s", url + anonym_params)
|
|
275
|
-
return
|
|
275
|
+
return {}
|
|
276
276
|
except Exception as e:
|
|
277
277
|
_LOGGER.warning("Exception at %s: %s", url + anonym_params, e)
|
|
278
|
-
return
|
|
278
|
+
return {}
|
|
279
279
|
return response
|
|
280
280
|
|
|
281
281
|
async def async_get_supplies(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|