gazpar2haws 0.1.10__tar.gz → 0.1.11__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.
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.11] - 2025-01-12
9
+
10
+ ### Fixed
11
+
12
+ [#32](https://github.com/ssenart/gazpar2haws/issues/32): Fix fatal happening after introducing as_of_date for tests.
13
+
8
14
  ## [0.1.10] - 2025-01-11
9
15
 
10
16
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gazpar2haws
3
- Version: 0.1.10
3
+ Version: 0.1.11
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
 
@@ -43,7 +43,8 @@ class Gazpar:
43
43
 
44
44
  # Set the timezone
45
45
  timezone = pytz.timezone(self._timezone)
46
- self._as_of_date = timezone.localize(self._as_of_date)
46
+ if self._as_of_date.tzinfo is None:
47
+ self._as_of_date = timezone.localize(self._as_of_date)
47
48
 
48
49
  # ----------------------------------
49
50
  def name(self):
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gazpar2haws"
3
- version = "0.1.10"
3
+ version = "0.1.11"
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