weheat 2024.9.4rc2__py3-none-any.whl → 2024.9.5__py3-none-any.whl
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.
- weheat/abstractions/heat_pump.py +8 -0
- weheat/abstractions/user.py +3 -3
- {weheat-2024.9.4rc2.dist-info → weheat-2024.9.5.dist-info}/METADATA +1 -1
- {weheat-2024.9.4rc2.dist-info → weheat-2024.9.5.dist-info}/RECORD +7 -7
- {weheat-2024.9.4rc2.dist-info → weheat-2024.9.5.dist-info}/LICENSE +0 -0
- {weheat-2024.9.4rc2.dist-info → weheat-2024.9.5.dist-info}/WHEEL +0 -0
- {weheat-2024.9.4rc2.dist-info → weheat-2024.9.5.dist-info}/top_level.txt +0 -0
weheat/abstractions/heat_pump.py
CHANGED
|
@@ -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
|
"""
|
weheat/abstractions/user.py
CHANGED
|
@@ -3,7 +3,7 @@ from weheat.api_client import ApiClient
|
|
|
3
3
|
from weheat.api.user_api import UserApi
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
def get_user_id_from_token(api_url: str, access_token: str):
|
|
6
|
+
async def get_user_id_from_token(api_url: str, access_token: str):
|
|
7
7
|
""" Get the user id from the current logged-in user. """
|
|
8
8
|
try:
|
|
9
9
|
config = Configuration(host=api_url, access_token=access_token)
|
|
@@ -11,8 +11,8 @@ def get_user_id_from_token(api_url: str, access_token: str):
|
|
|
11
11
|
with ApiClient(configuration=config) as client:
|
|
12
12
|
response = UserApi(
|
|
13
13
|
client
|
|
14
|
-
).api_v1_users_me_get_with_http_info()
|
|
14
|
+
).api_v1_users_me_get_with_http_info(async_req=True).get()
|
|
15
15
|
if response.status_code == 200:
|
|
16
16
|
return response.data.id
|
|
17
17
|
except Exception as e:
|
|
18
|
-
raise e
|
|
18
|
+
raise e
|
|
@@ -8,8 +8,8 @@ weheat/rest.py,sha256=hLgJ0CYAR1Dr_LppodDNNC_chj5hEQUmzDmbxvID1ao,13808
|
|
|
8
8
|
weheat/abstractions/__init__.py,sha256=cRdA_kyTIooo39I13_mqShSfZMqdzNGHbmrnITqgx6A,161
|
|
9
9
|
weheat/abstractions/auth.py,sha256=VCAxJ4OIj7bsYttqJl5-juU0VUlSd3xPu7kUjtHZr3U,979
|
|
10
10
|
weheat/abstractions/discovery.py,sha256=0HEXdtIuw3FIATUwX0xpeUVRnk8i-HRL21pE6b1mej0,1679
|
|
11
|
-
weheat/abstractions/heat_pump.py,sha256=
|
|
12
|
-
weheat/abstractions/user.py,sha256=
|
|
11
|
+
weheat/abstractions/heat_pump.py,sha256=I4ojfeFtsRrdTkeoD6Z9SMYC7vmlZhezuwdqZNl7qyY,4832
|
|
12
|
+
weheat/abstractions/user.py,sha256=n1gmPaLKXmRjF1jDuMQ0951RkbBKm-Cx3cgUU2nOA9U,648
|
|
13
13
|
weheat/api/__init__.py,sha256=DQnnRs5Z29Nf5sGdFd3f96xM6p_FMym-_-dvQC2VzdU,243
|
|
14
14
|
weheat/api/energy_log_api.py,sha256=yIIqd-C_xHSM_1eNoj2i04IDkJkzU0-a9iFGDSd2zLo,11374
|
|
15
15
|
weheat/api/heat_pump_api.py,sha256=FAf7jxosIAginCom-aUuFdj7jZupv8134OI6rpkdK80,24368
|
|
@@ -29,8 +29,8 @@ weheat/models/read_all_heat_pump_dto.py,sha256=PDaWb-2qSzAnMoIsNceHavT1ybIZa3-lv
|
|
|
29
29
|
weheat/models/read_heat_pump_dto.py,sha256=ufDbcHxtB8o2jmk00bMP_xol3uCdoTOqiHS6UUzRic4,4514
|
|
30
30
|
weheat/models/read_user_dto.py,sha256=J1YlL-WsXArbirllI1fHZrguKy5Wv35NIck59ICBSGg,3465
|
|
31
31
|
weheat/models/role.py,sha256=eF6nawkz8mmCGQEmJx26Y2MPFmlKdpOOtJ2Q70b-Qtc,938
|
|
32
|
-
weheat-2024.9.
|
|
33
|
-
weheat-2024.9.
|
|
34
|
-
weheat-2024.9.
|
|
35
|
-
weheat-2024.9.
|
|
36
|
-
weheat-2024.9.
|
|
32
|
+
weheat-2024.9.5.dist-info/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
|
|
33
|
+
weheat-2024.9.5.dist-info/METADATA,sha256=TXtxqxQcY3tS-nPmKrdYRVLAEVGvJlT2Ib6UrPBUCJE,3900
|
|
34
|
+
weheat-2024.9.5.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
|
|
35
|
+
weheat-2024.9.5.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
|
|
36
|
+
weheat-2024.9.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|