pyechorobotics 2.1.0__tar.gz → 2.2.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-2.1.0/src/pyechorobotics.egg-info → pyechorobotics-2.2.0}/PKG-INFO +1 -1
  2. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/pyproject.toml +1 -1
  3. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/echoroboticsapi/models.py +2 -1
  4. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0/src/pyechorobotics.egg-info}/PKG-INFO +1 -1
  5. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/LICENSE.md +0 -0
  6. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/README.md +0 -0
  7. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/setup.cfg +0 -0
  8. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/setup.py +0 -0
  9. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/echoroboticsapi/__init__.py +0 -0
  10. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/echoroboticsapi/api.py +0 -0
  11. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/echoroboticsapi/smart_fetch.py +0 -0
  12. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/echoroboticsapi/smart_mode.py +0 -0
  13. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/pyechorobotics.egg-info/SOURCES.txt +0 -0
  14. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/pyechorobotics.egg-info/dependency_links.txt +0 -0
  15. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/pyechorobotics.egg-info/requires.txt +0 -0
  16. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/src/pyechorobotics.egg-info/top_level.txt +0 -0
  17. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/test/test_api.py +0 -0
  18. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/test/test_smart_fetch.py +0 -0
  19. {pyechorobotics-2.1.0 → pyechorobotics-2.2.0}/test/test_smart_mode.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyechorobotics
3
- Version: 2.1.0
3
+ Version: 2.2.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 = "2.1.0"
3
+ version = "2.2.0"
4
4
  dependencies = [
5
5
  "aiohttp",
6
6
  "yarl",
@@ -49,7 +49,8 @@ def dtparse(value) -> datetime.datetime:
49
49
  ret = dateutil_isoparse(value)
50
50
  is_aware = ret.tzinfo is not None and ret.tzinfo.utcoffset(ret) is not None
51
51
  if not is_aware:
52
- raise ValueError(f"failed to find timezone in: {value}")
52
+ # since 2026 10 28 the API has started reporting non-aware timestamps in what appears to be zulu time
53
+ ret = ret.replace(tzinfo=datetime.timezone.utc)
53
54
  return ret
54
55
 
55
56
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyechorobotics
3
- Version: 2.1.0
3
+ Version: 2.2.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