weheat 2024.11.2__tar.gz → 2024.11.26__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.

Potentially problematic release.


This version of weheat might be problematic. Click here for more details.

Files changed (42) hide show
  1. {weheat-2024.11.2/weheat.egg-info → weheat-2024.11.26}/PKG-INFO +2 -2
  2. {weheat-2024.11.2 → weheat-2024.11.26}/pyproject.toml +2 -2
  3. {weheat-2024.11.2 → weheat-2024.11.26}/setup.py +2 -2
  4. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/abstractions/discovery.py +1 -1
  5. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/abstractions/heat_pump.py +1 -1
  6. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/api/energy_log_api.py +5 -3
  7. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/api/heat_pump_api.py +4 -2
  8. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/api/heat_pump_log_api.py +4 -3
  9. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/api/user_api.py +4 -2
  10. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/api_response.py +5 -1
  11. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/energy_view_dto.py +4 -1
  12. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/heat_pump_log_view_dto.py +4 -1
  13. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/raw_heat_pump_log_dto.py +5 -1
  14. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/read_all_heat_pump_dto.py +4 -1
  15. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/read_heat_pump_dto.py +4 -1
  16. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/read_user_dto.py +4 -1
  17. {weheat-2024.11.2 → weheat-2024.11.26/weheat.egg-info}/PKG-INFO +2 -2
  18. {weheat-2024.11.2 → weheat-2024.11.26}/weheat.egg-info/requires.txt +1 -1
  19. {weheat-2024.11.2 → weheat-2024.11.26}/LICENSE +0 -0
  20. {weheat-2024.11.2 → weheat-2024.11.26}/README.md +0 -0
  21. {weheat-2024.11.2 → weheat-2024.11.26}/setup.cfg +0 -0
  22. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/__init__.py +0 -0
  23. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/abstractions/__init__.py +0 -0
  24. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/abstractions/auth.py +0 -0
  25. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/abstractions/user.py +0 -0
  26. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/api/__init__.py +0 -0
  27. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/api_client.py +0 -0
  28. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/configuration.py +0 -0
  29. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/exceptions.py +0 -0
  30. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/__init__.py +0 -0
  31. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/boiler_type.py +0 -0
  32. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/device_state.py +0 -0
  33. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/dhw_type.py +0 -0
  34. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/heat_pump_model.py +0 -0
  35. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/heat_pump_status_enum.py +0 -0
  36. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/heat_pump_type.py +0 -0
  37. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/models/role.py +0 -0
  38. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/py.typed +0 -0
  39. {weheat-2024.11.2 → weheat-2024.11.26}/weheat/rest.py +0 -0
  40. {weheat-2024.11.2 → weheat-2024.11.26}/weheat.egg-info/SOURCES.txt +0 -0
  41. {weheat-2024.11.2 → weheat-2024.11.26}/weheat.egg-info/dependency_links.txt +0 -0
  42. {weheat-2024.11.2 → weheat-2024.11.26}/weheat.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: weheat
3
- Version: 2024.11.2
3
+ Version: 2024.11.26
4
4
  Summary: Weheat Backend client
5
5
  Home-page: https://github.com/wefabricate/wh-python
6
6
  Author: Jesper Raemaekers
@@ -11,7 +11,7 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: urllib3<2.1.0,>=1.25.3
13
13
  Requires-Dist: python-dateutil
14
- Requires-Dist: pydantic<2,>=1.10.5
14
+ Requires-Dist: pydantic<3,>=1.10.5
15
15
  Requires-Dist: aenum
16
16
 
17
17
  # Weheat backend client
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "weheat"
3
- version = "2024.11.2"
3
+ version = "2024.11.26"
4
4
  description = "Weheat Backend"
5
5
  authors = ["Jesper Raemaekers <jesper.raemaekers@wefabricate.com>", "Kjell van Straaten <kjell.van.straaten@wefabricate.com>"]
6
6
  license = "MIT"
@@ -14,7 +14,7 @@ python = "^3.7"
14
14
 
15
15
  urllib3 = ">= 1.25.3"
16
16
  python-dateutil = ">=2.8.2"
17
- pydantic = "^1.10.5, <2"
17
+ pydantic = ">=1.10.5, < 3"
18
18
  aenum = ">=3.1.11"
19
19
 
20
20
  [tool.poetry.dev-dependencies]
@@ -21,12 +21,12 @@ from setuptools import setup, find_packages # noqa: H301
21
21
  # prerequisite: setuptools
22
22
  # http://pypi.python.org/pypi/setuptools
23
23
  NAME = "weheat"
24
- VERSION = "2024.11.2"
24
+ VERSION = "2024.11.26"
25
25
  PYTHON_REQUIRES = ">=3.7"
26
26
  REQUIRES = [
27
27
  "urllib3 >= 1.25.3, < 2.1.0",
28
28
  "python-dateutil",
29
- "pydantic >= 1.10.5, < 2",
29
+ "pydantic >= 1.10.5, < 3",
30
30
  "aenum"
31
31
  ]
32
32
 
@@ -23,7 +23,7 @@ class HeatPumpDiscovery:
23
23
 
24
24
  with ApiClient(configuration=config) as client:
25
25
 
26
- response = HeatPumpApi(client).api_v1_heat_pumps_get_with_http_info('', 0, 1000, DeviceState.NUMBER_3 ,async_req=True).get()
26
+ response = HeatPumpApi(client).api_v1_heat_pumps_get_with_http_info('', 1, 1000, DeviceState.NUMBER_3 ,async_req=True).get()
27
27
  if response.status_code == 200:
28
28
  for pump in response.data:
29
29
  # Model of the heat pump
@@ -250,7 +250,7 @@ class HeatPump:
250
250
  return self.State.SELF_TEST
251
251
  elif numeric_state == 180:
252
252
  return self.State.MANUAL_CONTROL
253
- elif numeric_state == 200:
253
+ elif numeric_state >= 200 and numeric_state <= 240:
254
254
  return self.State.DEFROSTING
255
255
  return None
256
256
 
@@ -16,13 +16,15 @@ import re # noqa: F401
16
16
  import io
17
17
  import warnings
18
18
 
19
- from pydantic import validate_arguments, ValidationError
19
+ try:
20
+ from pydantic.v1 import Field, StrictStr, validate_arguments
21
+ except ImportError:
22
+ from pydantic import Field, StrictStr, validate_arguments
23
+
20
24
 
21
25
  from typing_extensions import Annotated
22
26
  from datetime import datetime
23
27
 
24
- from pydantic import Field, StrictStr
25
-
26
28
  from typing import List, Optional
27
29
 
28
30
  from weheat.models.energy_view_dto import EnergyViewDto
@@ -16,10 +16,12 @@ import re # noqa: F401
16
16
  import io
17
17
  import warnings
18
18
 
19
- from pydantic import validate_arguments, ValidationError
19
+ try:
20
+ from pydantic.v1 import validate_arguments, Field, StrictInt, StrictStr
21
+ except ImportError:
22
+ from pydantic import validate_arguments, Field, StrictInt, StrictStr
20
23
 
21
24
  from typing_extensions import Annotated
22
- from pydantic import Field, StrictInt, StrictStr
23
25
 
24
26
  from typing import List, Optional
25
27
 
@@ -16,13 +16,14 @@ import re # noqa: F401
16
16
  import io
17
17
  import warnings
18
18
 
19
- from pydantic import validate_arguments, ValidationError
19
+ try:
20
+ from pydantic.v1 import validate_arguments, Field, StrictStr
21
+ except ImportError:
22
+ from pydantic import validate_arguments, Field, StrictStr
20
23
 
21
24
  from typing_extensions import Annotated
22
25
  from datetime import datetime
23
26
 
24
- from pydantic import Field, StrictStr
25
-
26
27
  from typing import List, Optional
27
28
 
28
29
  from weheat.models.heat_pump_log_view_dto import HeatPumpLogViewDto
@@ -16,10 +16,12 @@ import re # noqa: F401
16
16
  import io
17
17
  import warnings
18
18
 
19
- from pydantic import validate_arguments, ValidationError
19
+ try:
20
+ from pydantic.v1 import validate_arguments, Field, StrictStr
21
+ except ImportError:
22
+ from pydantic import validate_arguments, Field, StrictStr
20
23
 
21
24
  from typing_extensions import Annotated
22
- from pydantic import Field, StrictStr
23
25
 
24
26
  from typing import Optional
25
27
 
@@ -2,7 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from typing import Any, Dict, Optional
5
- from pydantic import Field, StrictInt, StrictStr
5
+
6
+ try:
7
+ from pydantic.v1 import Field, StrictInt, StrictStr
8
+ except ImportError:
9
+ from pydantic import Field, StrictInt, StrictStr
6
10
 
7
11
  class ApiResponse:
8
12
  """
@@ -19,7 +19,10 @@ import json
19
19
 
20
20
  from datetime import datetime
21
21
  from typing import Optional, Union
22
- from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
22
+ try:
23
+ from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr
24
+ except ImportError:
25
+ from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
23
26
 
24
27
  class EnergyViewDto(BaseModel):
25
28
  """
@@ -19,7 +19,10 @@ import json
19
19
 
20
20
  from datetime import datetime
21
21
  from typing import Optional, Union
22
- from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
22
+ try:
23
+ from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr
24
+ except ImportError:
25
+ from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
23
26
 
24
27
  class HeatPumpLogViewDto(BaseModel):
25
28
  """
@@ -19,7 +19,11 @@ import json
19
19
 
20
20
  from datetime import datetime
21
21
  from typing import Optional, Union
22
- from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr
22
+ try:
23
+ from pydantic.v1 import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr
24
+ except ImportError:
25
+ from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr
26
+
23
27
 
24
28
  class RawHeatPumpLogDto(BaseModel):
25
29
  """
@@ -19,7 +19,10 @@ import json
19
19
 
20
20
  from datetime import datetime
21
21
  from typing import Optional
22
- from pydantic import BaseModel, Field, StrictStr, constr
22
+ try:
23
+ from pydantic.v1 import BaseModel, Field, StrictStr, constr
24
+ except ImportError:
25
+ from pydantic import BaseModel, Field, StrictStr, constr
23
26
  from weheat.models.boiler_type import BoilerType
24
27
  from weheat.models.device_state import DeviceState
25
28
  from weheat.models.dhw_type import DhwType
@@ -19,7 +19,10 @@ import json
19
19
 
20
20
  from datetime import datetime
21
21
  from typing import Optional
22
- from pydantic import BaseModel, Field, StrictStr, constr
22
+ try:
23
+ from pydantic.v1 import BaseModel, Field, StrictStr, constr
24
+ except ImportError:
25
+ from pydantic import BaseModel, Field, StrictStr, constr
23
26
  from weheat.models.boiler_type import BoilerType
24
27
  from weheat.models.device_state import DeviceState
25
28
  from weheat.models.dhw_type import DhwType
@@ -19,7 +19,10 @@ import json
19
19
 
20
20
  from datetime import datetime
21
21
  from typing import Optional
22
- from pydantic import BaseModel, Field, StrictStr
22
+ try:
23
+ from pydantic.v1 import BaseModel, Field, StrictStr
24
+ except ImportError:
25
+ from pydantic import BaseModel, Field, StrictStr
23
26
  from weheat.models.role import Role
24
27
 
25
28
  class ReadUserDto(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: weheat
3
- Version: 2024.11.2
3
+ Version: 2024.11.26
4
4
  Summary: Weheat Backend client
5
5
  Home-page: https://github.com/wefabricate/wh-python
6
6
  Author: Jesper Raemaekers
@@ -11,7 +11,7 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: urllib3<2.1.0,>=1.25.3
13
13
  Requires-Dist: python-dateutil
14
- Requires-Dist: pydantic<2,>=1.10.5
14
+ Requires-Dist: pydantic<3,>=1.10.5
15
15
  Requires-Dist: aenum
16
16
 
17
17
  # Weheat backend client
@@ -1,4 +1,4 @@
1
1
  urllib3<2.1.0,>=1.25.3
2
2
  python-dateutil
3
- pydantic<2,>=1.10.5
3
+ pydantic<3,>=1.10.5
4
4
  aenum
File without changes
File without changes
File without changes
File without changes
File without changes