gazpar2haws 0.3.0b16__tar.gz → 0.3.0b17__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gazpar2haws
3
- Version: 0.3.0b16
3
+ Version: 0.3.0b17
4
4
  Summary: Gazpar2HAWS is a gateway that reads data history from the GrDF (French gas provider) meter and send it to Home Assistant using WebSocket interface
5
5
  License: MIT License
6
6
 
@@ -104,11 +104,11 @@ class Gazpar:
104
104
  min(v[0] for v in last_date_and_value_by_sensor.values()) + timedelta(days=1), self._as_of_date
105
105
  )
106
106
 
107
- # The end date is the as of date
108
- end_date = self._as_of_date
109
-
110
107
  # Fetch the data from GrDF and publish it to Home Assistant
111
- daily_history = self.fetch_daily_gazpar_history(start_date, end_date)
108
+ daily_history = self.fetch_daily_gazpar_history(start_date, self._as_of_date)
109
+
110
+ # The end date is the last date of the daily history
111
+ end_date = datetime.strptime(daily_history[-1][pygazpar.PropertyName.TIME_PERIOD.value], "%d/%m/%Y").date()
112
112
 
113
113
  # Extract the volume from the daily history
114
114
  volume_array = self.extract_property_from_daily_gazpar_history(
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gazpar2haws"
3
- version = "0.3.0b16"
3
+ version = "0.3.0b17"
4
4
  description = "Gazpar2HAWS is a gateway that reads data history from the GrDF (French gas provider) meter and send it to Home Assistant using WebSocket interface"
5
5
  license = { file = "LICENSE" }
6
6
  readme = "README.md"
File without changes
File without changes