pyechorobotics 1.2.0__tar.gz → 1.3.0__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.
Files changed (19) hide show
  1. {pyechorobotics-1.2.0/src/pyechorobotics.egg-info → pyechorobotics-1.3.0}/PKG-INFO +1 -1
  2. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/pyproject.toml +1 -1
  3. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/echoroboticsapi/models.py +2 -1
  4. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0/src/pyechorobotics.egg-info}/PKG-INFO +1 -1
  5. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/LICENSE.md +0 -0
  6. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/README.md +0 -0
  7. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/setup.cfg +0 -0
  8. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/setup.py +0 -0
  9. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/echoroboticsapi/__init__.py +0 -0
  10. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/echoroboticsapi/api.py +0 -0
  11. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/echoroboticsapi/smart_fetch.py +0 -0
  12. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/echoroboticsapi/smart_mode.py +0 -0
  13. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/pyechorobotics.egg-info/SOURCES.txt +0 -0
  14. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/pyechorobotics.egg-info/dependency_links.txt +0 -0
  15. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/pyechorobotics.egg-info/requires.txt +0 -0
  16. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/src/pyechorobotics.egg-info/top_level.txt +0 -0
  17. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/test/test_api.py +0 -0
  18. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/test/test_smart_fetch.py +0 -0
  19. {pyechorobotics-1.2.0 → pyechorobotics-1.3.0}/test/test_smart_mode.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyechorobotics
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: Access API for echorobotics robot lawn mowers
5
5
  Author-email: functionpointer <suspendfunction@gmail.com>
6
6
  License: GNU General Public License v3 or later (GPLv3+)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyechorobotics"
3
- version = "1.2.0"
3
+ version = "1.3.0"
4
4
  dependencies = [
5
5
  "aiohttp",
6
6
  "yarl",
@@ -45,7 +45,8 @@ def dtparse(value) -> datetime.datetime:
45
45
  ret = dateutil_isoparse(value)
46
46
  is_aware = ret.tzinfo is not None and ret.tzinfo.utcoffset(ret) is not None
47
47
  if not is_aware:
48
- raise ValueError(f"failed to find timezone in: {value}")
48
+ # since 2026 10 28 the API has started reporting non-aware timestamps in what appears to be zulu time
49
+ ret = ret.replace(tzinfo=datetime.timezone.utc)
49
50
  return ret
50
51
 
51
52
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyechorobotics
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: Access API for echorobotics robot lawn mowers
5
5
  Author-email: functionpointer <suspendfunction@gmail.com>
6
6
  License: GNU General Public License v3 or later (GPLv3+)
File without changes
File without changes
File without changes