e-data 1.2.20__tar.gz → 1.2.21__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-1.2.20/e_data.egg-info → e_data-1.2.21}/PKG-INFO +1 -1
- {e_data-1.2.20 → e_data-1.2.21/e_data.egg-info}/PKG-INFO +1 -1
- {e_data-1.2.20 → e_data-1.2.21}/edata/connectors/datadis.py +2 -2
- {e_data-1.2.20 → e_data-1.2.21}/edata/helpers.py +4 -0
- {e_data-1.2.20 → e_data-1.2.21}/setup.py +1 -1
- {e_data-1.2.20 → e_data-1.2.21}/LICENSE +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/MANIFEST.in +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/README.md +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/e_data.egg-info/SOURCES.txt +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/e_data.egg-info/dependency_links.txt +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/e_data.egg-info/requires.txt +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/e_data.egg-info/top_level.txt +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/__init__.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/connectors/__init__.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/connectors/redata.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/const.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/definitions.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/processors/__init__.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/processors/base.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/processors/billing.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/processors/consumption.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/processors/maximeter.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/processors/utils.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/edata/storage.py +0 -0
- {e_data-1.2.20 → e_data-1.2.21}/setup.cfg +0 -0
|
@@ -75,8 +75,8 @@ def migrate_storage(storage_dir):
|
|
|
75
75
|
"""Migrate storage from older versions."""
|
|
76
76
|
|
|
77
77
|
with contextlib.suppress(FileNotFoundError):
|
|
78
|
-
os.remove(storage_dir, "edata_recent_queries.json")
|
|
79
|
-
os.remove(storage_dir, "edata_recent_queries_cache.json")
|
|
78
|
+
os.remove(os.path.join(storage_dir, "edata_recent_queries.json"))
|
|
79
|
+
os.remove(os.path.join(storage_dir, "edata_recent_queries_cache.json"))
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
class DatadisConnector:
|
|
@@ -212,6 +212,8 @@ class EdataHelper:
|
|
|
212
212
|
self.data["consumptions"], consumptions, "datetime"
|
|
213
213
|
)
|
|
214
214
|
self.last_update["consumptions"] = datetime.now()
|
|
215
|
+
else:
|
|
216
|
+
_LOGGER.info("%s: consumptions are up to date", self._scups)
|
|
215
217
|
else:
|
|
216
218
|
_LOGGER.info("%s: consumptions are already updated (skipping)", self._scups)
|
|
217
219
|
|
|
@@ -236,6 +238,8 @@ class EdataHelper:
|
|
|
236
238
|
self.data["maximeter"], maximeter, "datetime"
|
|
237
239
|
)
|
|
238
240
|
self.last_update["maximeter"] = datetime.now()
|
|
241
|
+
else:
|
|
242
|
+
_LOGGER.info("%s: maximeter is up to date", self._scups)
|
|
239
243
|
else:
|
|
240
244
|
_LOGGER.info("%s: maximeter is already updated (skipping)", self._scups)
|
|
241
245
|
|
|
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
|