weheat 2024.11.1__py3-none-any.whl → 2024.11.26__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.

@@ -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
@@ -192,27 +192,27 @@ class HeatPump:
192
192
  return output / input
193
193
 
194
194
  @property
195
- def inside_unit_water_pump_state(self):
195
+ def indoor_unit_water_pump_state(self):
196
196
  """Decoded water pump state."""
197
197
  return self._if_available("control_bridge_status_decoded_water_pump")
198
198
 
199
199
  @property
200
- def inside_unit_auxilary_pump_state(self):
201
- """Decoded auxilary pump state."""
200
+ def indoor_unit_auxiliary_pump_state(self):
201
+ """Decoded auxiliary pump state."""
202
202
  return self._if_available("control_bridge_status_decoded_water_pump2")
203
203
 
204
204
  @property
205
- def inside_unit_dhw_valve_or_pump_state(self):
205
+ def indoor_unit_dhw_valve_or_pump_state(self):
206
206
  """Decoded DHW valve or pump state."""
207
207
  return self._if_available("control_bridge_status_decoded_dhw_valve")
208
208
 
209
209
  @property
210
- def inside_unit_gas_boiler_state(self):
210
+ def indoor_unit_gas_boiler_state(self):
211
211
  """Decoded gas boiler state."""
212
212
  return self._if_available("control_bridge_status_decoded_gas_boiler")
213
213
 
214
214
  @property
215
- def inside_unit_gas_electric_heater(self):
215
+ def indoor_unit_electric_heater_state(self):
216
216
  """Decoded electric heater state."""
217
217
  return self._if_available("control_bridge_status_decoded_electric_heater")
218
218
 
@@ -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
weheat/api/user_api.py CHANGED
@@ -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
 
weheat/api_response.py CHANGED
@@ -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.1
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
@@ -9,9 +9,9 @@ License: MIT
9
9
  Keywords: OpenAPI,OpenAPI-Generator,Weheat Backend
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
- Requires-Dist: urllib3 <2.1.0,>=1.25.3
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
@@ -0,0 +1,36 @@
1
+ weheat/__init__.py,sha256=dk7tMBQ9jtkNiWeZW5xWCJoaGIrZVQ-tm5NCZhi2qWU,1440
2
+ weheat/api_client.py,sha256=QNUo_W5MMBajpjN2sWFUIRhOszAE93KECNxdvhVns84,29516
3
+ weheat/api_response.py,sha256=n-M3QVNIkmh-cQazukKeiw_nuvVpWBPAMgr2ryj7vaM,938
4
+ weheat/configuration.py,sha256=FerGmYva4hSzbtPV8hASrSF4Fd1zRIFezPzBhHQHV5c,14562
5
+ weheat/exceptions.py,sha256=P4L9gEdzeIo8YMAh27FeP_-55lEgV1TUFTKq4dmqTVQ,5365
6
+ weheat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ weheat/rest.py,sha256=hLgJ0CYAR1Dr_LppodDNNC_chj5hEQUmzDmbxvID1ao,13808
8
+ weheat/abstractions/__init__.py,sha256=cRdA_kyTIooo39I13_mqShSfZMqdzNGHbmrnITqgx6A,161
9
+ weheat/abstractions/auth.py,sha256=VCAxJ4OIj7bsYttqJl5-juU0VUlSd3xPu7kUjtHZr3U,979
10
+ weheat/abstractions/discovery.py,sha256=mP0_n3OLTwODtPLnYF5F86JdCrfaSwTft91gEEMT5FU,2274
11
+ weheat/abstractions/heat_pump.py,sha256=cFPFE8jX7vJzwXvmj8vDpZEi2jBsSRPVYN1g3ajw5lE,9735
12
+ weheat/abstractions/user.py,sha256=n1gmPaLKXmRjF1jDuMQ0951RkbBKm-Cx3cgUU2nOA9U,648
13
+ weheat/api/__init__.py,sha256=DQnnRs5Z29Nf5sGdFd3f96xM6p_FMym-_-dvQC2VzdU,243
14
+ weheat/api/energy_log_api.py,sha256=p1JB9BxWch86c2GAJ6Q0OSNxJjaUY9-uR96cjAUU3Xo,11431
15
+ weheat/api/heat_pump_api.py,sha256=2k0FkxAJbnFJaGx6zYTleaHLgeNBpu9wsyeBDRmIEbs,24436
16
+ weheat/api/heat_pump_log_api.py,sha256=vbc10M4_6jDvFP5Bs-goLtbHjHf4Ve0w3GPOOuIXCiA,28658
17
+ weheat/api/user_api.py,sha256=V2QrdGya7kMJiODqUfz4iB8UquGUajF3O4PGBtIyT9c,7823
18
+ weheat/models/__init__.py,sha256=VJsiySw4ndbqm5WCTxehHg-gmjaB_m2czi2FO-AQZn0,766
19
+ weheat/models/boiler_type.py,sha256=jZF4sXhR7SEhj3bEfvmeH48l1APu_gtSlpQUj45vP7o,906
20
+ weheat/models/device_state.py,sha256=Di_i-8IOWQaK25eYGNsgXv1OZh9s8RAH-6vcdacAObo,1035
21
+ weheat/models/dhw_type.py,sha256=IamPcF02M_BDadVxfD7poh1C00mPXTJ9Wbjwh6TUfV8,817
22
+ weheat/models/energy_view_dto.py,sha256=bNxtr29Yob06ffa-yB8Y8hAeK_pAaPp65Pr7tw3jFN0,8856
23
+ weheat/models/heat_pump_log_view_dto.py,sha256=ryyyK7VaWEANJaMV10kw9m0VDbMI7G4fyI447Wal6o4,63897
24
+ weheat/models/heat_pump_model.py,sha256=8E4VhmRZwLh6I_WfckpWMQ2GbQDZqyszimc58ODOaf0,1079
25
+ weheat/models/heat_pump_status_enum.py,sha256=rv8xkSvnbegS6EQMNL-tayA_-4sr1rIkS6Hoq3yoHCA,1017
26
+ weheat/models/heat_pump_type.py,sha256=Kft4cXvenK27miFDcsBOHv7p2svAW18iptT_GUcXWeU,818
27
+ weheat/models/raw_heat_pump_log_dto.py,sha256=-GG-hVvSRE-iikJ3QpBpWdRWjvh8_Jfz5Vkv1VwIhtQ,34507
28
+ weheat/models/read_all_heat_pump_dto.py,sha256=SSuXCZ6ycQixGE4HX9l7NJD6vEEmupngZGCJZ1qmUMU,5181
29
+ weheat/models/read_heat_pump_dto.py,sha256=ETXsM2imYycxDbk8-6R4_wvR0_LyLgsgNKZO14R2oA8,4607
30
+ weheat/models/read_user_dto.py,sha256=S5UbvBtTGmMybsJMsKznrVGaUuJFRtFbMME8n7assR8,3550
31
+ weheat/models/role.py,sha256=eF6nawkz8mmCGQEmJx26Y2MPFmlKdpOOtJ2Q70b-Qtc,938
32
+ weheat-2024.11.26.dist-info/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
33
+ weheat-2024.11.26.dist-info/METADATA,sha256=Rr_Orqrn6YT5EsMh_ozOCIfjCVWKyibg8Q53woW71dM,3900
34
+ weheat-2024.11.26.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
35
+ weheat-2024.11.26.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
36
+ weheat-2024.11.26.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,36 +0,0 @@
1
- weheat/__init__.py,sha256=dk7tMBQ9jtkNiWeZW5xWCJoaGIrZVQ-tm5NCZhi2qWU,1440
2
- weheat/api_client.py,sha256=QNUo_W5MMBajpjN2sWFUIRhOszAE93KECNxdvhVns84,29516
3
- weheat/api_response.py,sha256=uCehWdXXDnAO2HAHGKe0SgpQ_mJiGDbcu-BHDF3n_IM,852
4
- weheat/configuration.py,sha256=FerGmYva4hSzbtPV8hASrSF4Fd1zRIFezPzBhHQHV5c,14562
5
- weheat/exceptions.py,sha256=P4L9gEdzeIo8YMAh27FeP_-55lEgV1TUFTKq4dmqTVQ,5365
6
- weheat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- weheat/rest.py,sha256=hLgJ0CYAR1Dr_LppodDNNC_chj5hEQUmzDmbxvID1ao,13808
8
- weheat/abstractions/__init__.py,sha256=cRdA_kyTIooo39I13_mqShSfZMqdzNGHbmrnITqgx6A,161
9
- weheat/abstractions/auth.py,sha256=VCAxJ4OIj7bsYttqJl5-juU0VUlSd3xPu7kUjtHZr3U,979
10
- weheat/abstractions/discovery.py,sha256=o0w4lxMPP-vfKrfsrH3-W_1Cxmk9u-hbywibY_zZs9w,2274
11
- weheat/abstractions/heat_pump.py,sha256=CysEH7Z5u37SFuZPKZSnifnxeoiwVuMCyOkswFnwbUw,9706
12
- weheat/abstractions/user.py,sha256=n1gmPaLKXmRjF1jDuMQ0951RkbBKm-Cx3cgUU2nOA9U,648
13
- weheat/api/__init__.py,sha256=DQnnRs5Z29Nf5sGdFd3f96xM6p_FMym-_-dvQC2VzdU,243
14
- weheat/api/energy_log_api.py,sha256=yIIqd-C_xHSM_1eNoj2i04IDkJkzU0-a9iFGDSd2zLo,11374
15
- weheat/api/heat_pump_api.py,sha256=FAf7jxosIAginCom-aUuFdj7jZupv8134OI6rpkdK80,24368
16
- weheat/api/heat_pump_log_api.py,sha256=Xt4pkXOT1x7dsJse00iXpCMQTDuLzhQrMgL_XK3DzDo,28602
17
- weheat/api/user_api.py,sha256=OHRj6Pur5oLxmC4lkcU-pl2o-XWFhasJbMvoXSrDqqg,7766
18
- weheat/models/__init__.py,sha256=VJsiySw4ndbqm5WCTxehHg-gmjaB_m2czi2FO-AQZn0,766
19
- weheat/models/boiler_type.py,sha256=jZF4sXhR7SEhj3bEfvmeH48l1APu_gtSlpQUj45vP7o,906
20
- weheat/models/device_state.py,sha256=Di_i-8IOWQaK25eYGNsgXv1OZh9s8RAH-6vcdacAObo,1035
21
- weheat/models/dhw_type.py,sha256=IamPcF02M_BDadVxfD7poh1C00mPXTJ9Wbjwh6TUfV8,817
22
- weheat/models/energy_view_dto.py,sha256=jLk6W-pXiBiHAa98G0h8Df-WZbGN_Zh19OoSF09NC5k,8747
23
- weheat/models/heat_pump_log_view_dto.py,sha256=spe_tG39NM_FzFEvhBk4Gad0Er-Xac5UT9_icx2EagU,63788
24
- weheat/models/heat_pump_model.py,sha256=8E4VhmRZwLh6I_WfckpWMQ2GbQDZqyszimc58ODOaf0,1079
25
- weheat/models/heat_pump_status_enum.py,sha256=rv8xkSvnbegS6EQMNL-tayA_-4sr1rIkS6Hoq3yoHCA,1017
26
- weheat/models/heat_pump_type.py,sha256=Kft4cXvenK27miFDcsBOHv7p2svAW18iptT_GUcXWeU,818
27
- weheat/models/raw_heat_pump_log_dto.py,sha256=vNn1u8_jYAIV9miBK3Qvq0j-U5OYv56dRU2085fLvcI,34385
28
- weheat/models/read_all_heat_pump_dto.py,sha256=PDaWb-2qSzAnMoIsNceHavT1ybIZa3-lva3zJZA2BzU,5088
29
- weheat/models/read_heat_pump_dto.py,sha256=ufDbcHxtB8o2jmk00bMP_xol3uCdoTOqiHS6UUzRic4,4514
30
- weheat/models/read_user_dto.py,sha256=J1YlL-WsXArbirllI1fHZrguKy5Wv35NIck59ICBSGg,3465
31
- weheat/models/role.py,sha256=eF6nawkz8mmCGQEmJx26Y2MPFmlKdpOOtJ2Q70b-Qtc,938
32
- weheat-2024.11.1.dist-info/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
33
- weheat-2024.11.1.dist-info/METADATA,sha256=62ag45Pz7lgvMzy4RbwgZrJNvG26ZfpSaGGscOlEUAo,3901
34
- weheat-2024.11.1.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
35
- weheat-2024.11.1.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
36
- weheat-2024.11.1.dist-info/RECORD,,