weheat 2024.8.10rc3__py3-none-any.whl → 2024.8.30rc3__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.

@@ -1,5 +1,6 @@
1
1
  from dataclasses import dataclass
2
2
 
3
+ from weheat import DeviceState
3
4
  from weheat.configuration import Configuration
4
5
  from weheat.api_client import ApiClient
5
6
  from weheat.api.heat_pump_api import HeatPumpApi
@@ -15,14 +16,14 @@ class HeatPumpDiscovery:
15
16
  has_dhw: bool = False
16
17
 
17
18
  @staticmethod
18
- def discover(api_url: str, access_token: str) -> list[HeatPumpInfo]:
19
+ async def discover(api_url: str, access_token: str) -> list[HeatPumpInfo]:
19
20
  discovered_pumps = []
20
21
 
21
22
  config = Configuration(host=api_url, access_token=access_token)
22
23
 
23
24
  with ApiClient(configuration=config) as client:
24
- # try:
25
- response = HeatPumpApi(client).api_v1_heat_pumps_get_with_http_info()
25
+
26
+ response = HeatPumpApi(client).api_v1_heat_pumps_get_with_http_info('', 0, 1000, DeviceState.NUMBER_3 ,async_req=True).get()
26
27
  if response.status_code == 200:
27
28
  for pump in response.data:
28
29
  model_string = "BlackBird P80 heat pump"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: weheat
3
- Version: 2024.8.10rc3
3
+ Version: 2024.8.30rc3
4
4
  Summary: Weheat Backend client
5
5
  Home-page: https://github.com/wefabricate/wh-python
6
6
  Author: Jesper Raemaekers
@@ -7,7 +7,7 @@ weheat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  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
- weheat/abstractions/discovery.py,sha256=fb86CB0SJMhGCg7573GlI-E1lYxcx-TLJdanbAMtuUE,1598
10
+ weheat/abstractions/discovery.py,sha256=oAatd2OFKFqfQB_j8b5z8EsqvrDbrXjlkPaG_pdBZFg,1672
11
11
  weheat/abstractions/heat_pump.py,sha256=kzi6B6oQ8hFYzxMBZqVwbFRY16vR9OFnlWPErBQ_8uA,4649
12
12
  weheat/api/__init__.py,sha256=CNY0PYXwKCKT9xlI0z574W6dMOAqQMjiZHuubLdleX8,203
13
13
  weheat/api/energy_log_api.py,sha256=yIIqd-C_xHSM_1eNoj2i04IDkJkzU0-a9iFGDSd2zLo,11374
@@ -25,8 +25,8 @@ weheat/models/heat_pump_type.py,sha256=Kft4cXvenK27miFDcsBOHv7p2svAW18iptT_GUcXW
25
25
  weheat/models/raw_heat_pump_log_dto.py,sha256=vNn1u8_jYAIV9miBK3Qvq0j-U5OYv56dRU2085fLvcI,34385
26
26
  weheat/models/read_all_heat_pump_dto.py,sha256=PDaWb-2qSzAnMoIsNceHavT1ybIZa3-lva3zJZA2BzU,5088
27
27
  weheat/models/read_heat_pump_dto.py,sha256=ufDbcHxtB8o2jmk00bMP_xol3uCdoTOqiHS6UUzRic4,4514
28
- weheat-2024.8.10rc3.dist-info/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
29
- weheat-2024.8.10rc3.dist-info/METADATA,sha256=i1Pb0CemDDxjXHGAR7hGL-AKVPgVknXsHZcWrvfGQCs,3904
30
- weheat-2024.8.10rc3.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
31
- weheat-2024.8.10rc3.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
32
- weheat-2024.8.10rc3.dist-info/RECORD,,
28
+ weheat-2024.8.30rc3.dist-info/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
29
+ weheat-2024.8.30rc3.dist-info/METADATA,sha256=kUjeP7QBr8eZ6yQETgTdFoyj5oAZbwCIkG7UwASLubk,3904
30
+ weheat-2024.8.30rc3.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
31
+ weheat-2024.8.30rc3.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
32
+ weheat-2024.8.30rc3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (74.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5