bwt-api 0.5.0__tar.gz → 0.5.1__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 (30) hide show
  1. {bwt_api-0.5.0/src/bwt_api.egg-info → bwt_api-0.5.1}/PKG-INFO +3 -2
  2. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api/api.py +2 -2
  3. {bwt_api-0.5.0 → bwt_api-0.5.1/src/bwt_api.egg-info}/PKG-INFO +3 -2
  4. {bwt_api-0.5.0 → bwt_api-0.5.1}/tests/test_api.py +12 -12
  5. {bwt_api-0.5.0 → bwt_api-0.5.1}/.coveragerc +0 -0
  6. {bwt_api-0.5.0 → bwt_api-0.5.1}/.github/workflows/python-package.yml +0 -0
  7. {bwt_api-0.5.0 → bwt_api-0.5.1}/.github/workflows/python-publish.yml +0 -0
  8. {bwt_api-0.5.0 → bwt_api-0.5.1}/.gitignore +0 -0
  9. {bwt_api-0.5.0 → bwt_api-0.5.1}/AUTHORS.rst +0 -0
  10. {bwt_api-0.5.0 → bwt_api-0.5.1}/CHANGELOG.rst +0 -0
  11. {bwt_api-0.5.0 → bwt_api-0.5.1}/CONTRIBUTING.rst +0 -0
  12. {bwt_api-0.5.0 → bwt_api-0.5.1}/LICENSE.txt +0 -0
  13. {bwt_api-0.5.0 → bwt_api-0.5.1}/README.rst +0 -0
  14. {bwt_api-0.5.0 → bwt_api-0.5.1}/pyproject.toml +0 -0
  15. {bwt_api-0.5.0 → bwt_api-0.5.1}/setup.cfg +0 -0
  16. {bwt_api-0.5.0 → bwt_api-0.5.1}/setup.py +0 -0
  17. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api/__init__.py +0 -0
  18. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api/data.py +0 -0
  19. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api/error.py +0 -0
  20. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api/exception.py +0 -0
  21. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api/skeleton.py +0 -0
  22. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api.egg-info/SOURCES.txt +0 -0
  23. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api.egg-info/dependency_links.txt +0 -0
  24. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api.egg-info/entry_points.txt +0 -0
  25. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api.egg-info/not-zip-safe +0 -0
  26. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api.egg-info/requires.txt +0 -0
  27. {bwt_api-0.5.0 → bwt_api-0.5.1}/src/bwt_api.egg-info/top_level.txt +0 -0
  28. {bwt_api-0.5.0 → bwt_api-0.5.1}/tests/conftest.py +0 -0
  29. {bwt_api-0.5.0 → bwt_api-0.5.1}/tests/pytest.ini +0 -0
  30. {bwt_api-0.5.0 → bwt_api-0.5.1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: bwt_api
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: Python API to access the local BWT Perla API.
5
5
  Home-page: https://github.com/dkarv/bwt_api
6
6
  Author: dkarv
@@ -23,6 +23,7 @@ Requires-Dist: setuptools; extra == "testing"
23
23
  Requires-Dist: pytest; extra == "testing"
24
24
  Requires-Dist: pytest-cov; extra == "testing"
25
25
  Requires-Dist: aioresponses; extra == "testing"
26
+ Dynamic: license-file
26
27
 
27
28
 
28
29
  bwt_api
@@ -57,10 +57,10 @@ class BwtApi:
57
57
  raise ConnectException from e
58
58
 
59
59
  def _convert_datetime(self, input: str) -> datetime:
60
- # It looks like the device sends and even shows everything in UTC
60
+ # It looks like the device sends and even shows everything in local time
61
61
  return datetime.strptime(
62
62
  input, "%Y-%m-%d %H:%M:%S"
63
- ).replace(tzinfo=ZoneInfo("UTC"))
63
+ )# .replace(tzinfo=ZoneInfo("UTC"))
64
64
 
65
65
  async def get_current_data(self) -> CurrentResponse:
66
66
  """Get the current state of the BWT."""
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: bwt_api
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: Python API to access the local BWT Perla API.
5
5
  Home-page: https://github.com/dkarv/bwt_api
6
6
  Author: dkarv
@@ -23,6 +23,7 @@ Requires-Dist: setuptools; extra == "testing"
23
23
  Requires-Dist: pytest; extra == "testing"
24
24
  Requires-Dist: pytest-cov; extra == "testing"
25
25
  Requires-Dist: aioresponses; extra == "testing"
26
+ Dynamic: license-file
26
27
 
27
28
 
28
29
  bwt_api
@@ -168,10 +168,10 @@ async def test_current_data():
168
168
  in_hardness=Hardness(caco3=374, dH=21, fH=37, mmol=4),
169
169
  out_hardness=Hardness(caco3=71, dH=4, fH=7, mmol=1),
170
170
  holiday_mode=0,
171
- regeneration_last_1=datetime(2023, 11, 16, 4, 42,15,0,ZoneInfo("UTC")),
172
- regeneration_last_2=datetime(2023, 11, 15, 4, 41,48,0,ZoneInfo("UTC")),
173
- service_customer=datetime(2023, 5, 18, 10, 51,7,0,ZoneInfo("UTC")),
174
- service_technician=datetime(2021, 1, 25, 13, 14,6,0,ZoneInfo("UTC")),
171
+ regeneration_last_1=datetime(2023, 11, 16, 4, 42,15,0),
172
+ regeneration_last_2=datetime(2023, 11, 15, 4, 41,48,0),
173
+ service_customer=datetime(2023, 5, 18, 10, 51,7,0),
174
+ service_technician=datetime(2021, 1, 25, 13, 14,6,0),
175
175
  out_of_service=0,
176
176
  regeneration_count_1=754,
177
177
  regeneration_count_2=751,
@@ -203,10 +203,10 @@ async def test_empty_errors():
203
203
  in_hardness=Hardness(caco3=374, dH=21, fH=37, mmol=4),
204
204
  out_hardness=Hardness(caco3=71, dH=4, fH=7, mmol=1),
205
205
  holiday_mode=0,
206
- regeneration_last_1=datetime(2023, 11, 16, 4, 42,15,0,ZoneInfo("UTC")),
207
- regeneration_last_2=datetime(2023, 11, 15, 4, 41,48,0,ZoneInfo("UTC")),
208
- service_customer=datetime(2023, 5, 18, 10, 51,7,0,ZoneInfo("UTC")),
209
- service_technician=datetime(2021, 1, 25, 13, 14,6,0,ZoneInfo("UTC")),
206
+ regeneration_last_1=datetime(2023, 11, 16, 4, 42,15,0),
207
+ regeneration_last_2=datetime(2023, 11, 15, 4, 41,48,0),
208
+ service_customer=datetime(2023, 5, 18, 10, 51,7,0),
209
+ service_technician=datetime(2021, 1, 25, 13, 14,6,0),
210
210
  out_of_service=0,
211
211
  regeneration_count_1=754,
212
212
  regeneration_count_2=751,
@@ -238,10 +238,10 @@ async def test_perla_one():
238
238
  in_hardness=Hardness(caco3=409, dH=23, fH=41, mmol=4),
239
239
  out_hardness=Hardness(caco3=107, dH=6, fH=11, mmol=1),
240
240
  holiday_mode=0,
241
- regeneration_last_1=datetime(2025, 1, 15, 3, 0, 15, 0, ZoneInfo("UTC")),
242
- regeneration_last_2=datetime(1970, 1, 1, 0, 59, 59, 0, ZoneInfo("UTC")),
243
- service_customer=datetime(2024, 11, 25, 9, 13, 48, 0, ZoneInfo("UTC")),
244
- service_technician=datetime(2023, 8, 7, 11, 13, 51, 0, ZoneInfo("UTC")),
241
+ regeneration_last_1=datetime(2025, 1, 15, 3, 0, 15, 0),
242
+ regeneration_last_2=datetime(1970, 1, 1, 0, 59, 59, 0),
243
+ service_customer=datetime(2024, 11, 25, 9, 13, 48, 0),
244
+ service_technician=datetime(2023, 8, 7, 11, 13, 51, 0),
245
245
  out_of_service=0,
246
246
  regeneration_count_1=692,
247
247
  regeneration_count_2=0,
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