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

@@ -218,9 +218,14 @@ class HeatPump:
218
218
  """
219
219
  input = self.power_input
220
220
  output = self.power_output
221
- if input is not None and output is not None and input != 0:
221
+ # When either is not available, the calculation cannot be made.
222
+ if input is None or output is None:
223
+ return None
224
+
225
+ if input > 0:
222
226
  return output / input
223
- return None
227
+
228
+ return 0
224
229
 
225
230
  @property
226
231
  def indoor_unit_water_pump_state(self) -> Union[bool, None]:
@@ -271,7 +276,7 @@ class HeatPump:
271
276
  return self.State.STANDBY
272
277
  elif numeric_state == 70:
273
278
  return self.State.HEATING
274
- elif numeric_state == 130:
279
+ elif numeric_state >= 130 and numeric_state < 140:
275
280
  return self.State.COOLING
276
281
  elif numeric_state == 150:
277
282
  return self.State.DHW
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: weheat
3
- Version: 2025.3.7
3
+ Version: 2025.6.10
4
4
  Summary: Weheat Backend client
5
5
  Home-page: https://github.com/wefabricate/wh-python
6
6
  Author: Jesper Raemaekers
@@ -9,7 +9,7 @@ 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<3.0.0,>=1.25.3
13
13
  Requires-Dist: python-dateutil
14
14
  Requires-Dist: aiohttp>=3.0.0
15
15
  Requires-Dist: aiohttp-retry>=2.8.3
@@ -22,6 +22,7 @@ Dynamic: description-content-type
22
22
  Dynamic: home-page
23
23
  Dynamic: keywords
24
24
  Dynamic: license
25
+ Dynamic: license-file
25
26
  Dynamic: requires-dist
26
27
  Dynamic: summary
27
28
 
@@ -7,7 +7,7 @@ weheat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  weheat/rest.py,sha256=hSt8T6NQfdrgz_7Dxo9U-DO5ZEgUVVG38OUErThWqlU,7086
8
8
  weheat/abstractions/__init__.py,sha256=BbA5WW8RE8vtpK0Dq80ayMILN4m6lmCyIPYzYXy3rTE,177
9
9
  weheat/abstractions/discovery.py,sha256=Iuqn-vTz4OO7UAqvS4vnLOpEWuswILOHAyKKIAe4XmA,2398
10
- weheat/abstractions/heat_pump.py,sha256=cjc9npinU556Y0ZZUEsrmsMK0WRVLjWkksjUrvIj3_Q,12304
10
+ weheat/abstractions/heat_pump.py,sha256=kg6QpkAoNu7IXnjcIsoPiPvKLIbHNFgDtZ_ZjY16o7w,12421
11
11
  weheat/abstractions/user.py,sha256=moeJAmbjdYuXAkL7Xuks5w4zcPpjKUXM9nYJDv8WEXs,775
12
12
  weheat/api/__init__.py,sha256=zZ_Xqek8VY6gARsJK6hRess0qqGii-Ls1uXm92k0jPE,244
13
13
  weheat/api/energy_log_api.py,sha256=plZ9YoQ9O39qufzr3B6CduuzJMY1K6iJS5f5AXN-vUo,17587
@@ -29,8 +29,8 @@ weheat/models/read_heat_pump_dto.py,sha256=7jH2MwMVKv_dOoJUUsKE8sTR5mROqco71OzOA
29
29
  weheat/models/read_user_dto.py,sha256=OIsWQZcdByN94ViSv0DjFHORRsMnkQ93jc-gJuudRdg,4018
30
30
  weheat/models/read_user_me_dto.py,sha256=Ger6qKlbZBBvG_4MStl6aEMkrBBJIjQtV6pvK1-lw28,4441
31
31
  weheat/models/role.py,sha256=6KUInAmkhoxEdWxBo9jBHXiy_nqJHrKXVeh8RvQPEYM,1101
32
- weheat-2025.3.7.dist-info/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
33
- weheat-2025.3.7.dist-info/METADATA,sha256=6vZo2ZD8vF2xWH13lKsg9oSgYhmyTSSojRc5IY83rAE,3873
34
- weheat-2025.3.7.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
35
- weheat-2025.3.7.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
36
- weheat-2025.3.7.dist-info/RECORD,,
32
+ weheat-2025.6.10.dist-info/licenses/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
33
+ weheat-2025.6.10.dist-info/METADATA,sha256=JaK-17jPAViMcIhLTg1wKRMQKXpQX7sTf9ssZqMG-l4,3896
34
+ weheat-2025.6.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
+ weheat-2025.6.10.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
36
+ weheat-2025.6.10.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.2)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5