e-data 1.2.8__tar.gz → 1.2.9__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.8/e_data.egg-info → e-data-1.2.9}/PKG-INFO +1 -1
- {e-data-1.2.8 → e-data-1.2.9/e_data.egg-info}/PKG-INFO +1 -1
- {e-data-1.2.8 → e-data-1.2.9}/edata/connectors/datadis.py +4 -1
- {e-data-1.2.8 → e-data-1.2.9}/setup.py +1 -1
- {e-data-1.2.8 → e-data-1.2.9}/LICENSE +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/MANIFEST.in +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/README.md +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/e_data.egg-info/SOURCES.txt +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/e_data.egg-info/dependency_links.txt +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/e_data.egg-info/requires.txt +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/e_data.egg-info/top_level.txt +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/__init__.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/connectors/__init__.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/connectors/redata.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/const.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/definitions.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/helpers.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/processors/__init__.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/processors/base.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/processors/billing.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/processors/consumption.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/processors/maximeter.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/processors/utils.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/edata/storage.py +0 -0
- {e-data-1.2.8 → e-data-1.2.9}/setup.cfg +0 -0
|
@@ -448,12 +448,15 @@ class DatadisConnector:
|
|
|
448
448
|
)
|
|
449
449
|
if not (start_date <= date_as_dt <= end_date):
|
|
450
450
|
continue # skip element if dt is out of range
|
|
451
|
+
_surplus = i.get("surplusEnergyKWh", 0)
|
|
452
|
+
if _surplus is None:
|
|
453
|
+
_surplus = 0
|
|
451
454
|
consumptions.append(
|
|
452
455
|
ConsumptionData(
|
|
453
456
|
datetime=date_as_dt,
|
|
454
457
|
delta_h=1,
|
|
455
458
|
value_kWh=i["consumptionKWh"],
|
|
456
|
-
surplus_kWh=
|
|
459
|
+
surplus_kWh=_surplus,
|
|
457
460
|
real=i["obtainMethod"] == "Real",
|
|
458
461
|
)
|
|
459
462
|
)
|
|
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
|