weheat 2024.9.4rc1__tar.gz → 2024.9.5__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.9.4rc1/weheat.egg-info → weheat-2024.9.5}/PKG-INFO +1 -1
  2. {weheat-2024.9.4rc1 → weheat-2024.9.5}/pyproject.toml +1 -1
  3. {weheat-2024.9.4rc1 → weheat-2024.9.5}/setup.py +1 -1
  4. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/abstractions/heat_pump.py +8 -0
  5. weheat-2024.9.5/weheat/abstractions/user.py +18 -0
  6. {weheat-2024.9.4rc1 → weheat-2024.9.5/weheat.egg-info}/PKG-INFO +1 -1
  7. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat.egg-info/SOURCES.txt +1 -0
  8. {weheat-2024.9.4rc1 → weheat-2024.9.5}/LICENSE +0 -0
  9. {weheat-2024.9.4rc1 → weheat-2024.9.5}/README.md +0 -0
  10. {weheat-2024.9.4rc1 → weheat-2024.9.5}/setup.cfg +0 -0
  11. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/__init__.py +0 -0
  12. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/abstractions/__init__.py +0 -0
  13. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/abstractions/auth.py +0 -0
  14. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/abstractions/discovery.py +0 -0
  15. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/api/__init__.py +0 -0
  16. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/api/energy_log_api.py +0 -0
  17. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/api/heat_pump_api.py +0 -0
  18. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/api/heat_pump_log_api.py +0 -0
  19. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/api/user_api.py +0 -0
  20. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/api_client.py +0 -0
  21. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/api_response.py +0 -0
  22. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/configuration.py +0 -0
  23. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/exceptions.py +0 -0
  24. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/__init__.py +0 -0
  25. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/boiler_type.py +0 -0
  26. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/device_state.py +0 -0
  27. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/dhw_type.py +0 -0
  28. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/energy_view_dto.py +0 -0
  29. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/heat_pump_log_view_dto.py +0 -0
  30. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/heat_pump_model.py +0 -0
  31. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/heat_pump_status_enum.py +0 -0
  32. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/heat_pump_type.py +0 -0
  33. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/raw_heat_pump_log_dto.py +0 -0
  34. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/read_all_heat_pump_dto.py +0 -0
  35. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/read_heat_pump_dto.py +0 -0
  36. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/read_user_dto.py +0 -0
  37. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/models/role.py +0 -0
  38. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/py.typed +0 -0
  39. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat/rest.py +0 -0
  40. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat.egg-info/dependency_links.txt +0 -0
  41. {weheat-2024.9.4rc1 → weheat-2024.9.5}/weheat.egg-info/requires.txt +0 -0
  42. {weheat-2024.9.4rc1 → weheat-2024.9.5}/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.9.4rc1
3
+ Version: 2024.9.5
4
4
  Summary: Weheat Backend client
5
5
  Home-page: https://github.com/wefabricate/wh-python
6
6
  Author: Jesper Raemaekers
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "weheat"
3
- version = "2024.09.04rc1"
3
+ version = "2024.09.05"
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"
@@ -21,7 +21,7 @@ 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.09.04rc1"
24
+ VERSION = "2024.09.05"
25
25
  PYTHON_REQUIRES = ">=3.7"
26
26
  REQUIRES = [
27
27
  "urllib3 >= 1.25.3, < 2.1.0",
@@ -96,6 +96,14 @@ class HeatPump:
96
96
  def power_output(self):
97
97
  return self._if_available("cm_mass_power_out")
98
98
 
99
+ @property
100
+ def dhw_top_temperature(self):
101
+ return self._if_available("t1")
102
+
103
+ @property
104
+ def dhw_bottom_temperature(self):
105
+ return self._if_available("t2")
106
+
99
107
  @property
100
108
  def cop(self):
101
109
  """
@@ -0,0 +1,18 @@
1
+ from weheat.configuration import Configuration
2
+ from weheat.api_client import ApiClient
3
+ from weheat.api.user_api import UserApi
4
+
5
+
6
+ async def get_user_id_from_token(api_url: str, access_token: str):
7
+ """ Get the user id from the current logged-in user. """
8
+ try:
9
+ config = Configuration(host=api_url, access_token=access_token)
10
+
11
+ with ApiClient(configuration=config) as client:
12
+ response = UserApi(
13
+ client
14
+ ).api_v1_users_me_get_with_http_info(async_req=True).get()
15
+ if response.status_code == 200:
16
+ return response.data.id
17
+ except Exception as e:
18
+ raise e
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: weheat
3
- Version: 2024.9.4rc1
3
+ Version: 2024.9.5
4
4
  Summary: Weheat Backend client
5
5
  Home-page: https://github.com/wefabricate/wh-python
6
6
  Author: Jesper Raemaekers
@@ -19,6 +19,7 @@ weheat/abstractions/__init__.py
19
19
  weheat/abstractions/auth.py
20
20
  weheat/abstractions/discovery.py
21
21
  weheat/abstractions/heat_pump.py
22
+ weheat/abstractions/user.py
22
23
  weheat/api/__init__.py
23
24
  weheat/api/energy_log_api.py
24
25
  weheat/api/heat_pump_api.py
File without changes
File without changes
File without changes
File without changes
File without changes