python-hilo 2024.6.1__tar.gz → 2024.10.1__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.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020-2023 David Vallee Delisle
3
+ Copyright (c) 2020-2024 David Vallee Delisle
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-hilo
3
- Version: 2024.6.1
3
+ Version: 2024.10.1
4
4
  Summary: A Python3, async interface to the Hilo API
5
5
  Home-page: https://github.com/dvd-dev/python-hilo
6
6
  License: MIT
@@ -29,7 +29,7 @@ Requires-Dist: backoff (>=1.11.1)
29
29
  Requires-Dist: python-dateutil (>=2.8.2)
30
30
  Requires-Dist: ruyaml (>=0.91.0)
31
31
  Requires-Dist: voluptuous (>=0.13.1)
32
- Requires-Dist: websockets (>=8.1,<13.0)
32
+ Requires-Dist: websockets (>=8.1,<14.0)
33
33
  Project-URL: Repository, https://github.com/dvd-dev/python-hilo
34
34
  Description-Content-Type: text/markdown
35
35
 
@@ -22,11 +22,19 @@ class Climate(HiloDevice):
22
22
 
23
23
  @property
24
24
  def max_temp(self) -> float:
25
- return cast(float, self.get_value("max_temp_setpoint", 0))
25
+ value = self.get_value("max_temp_setpoint", 0)
26
+
27
+ if value is None or value == 0:
28
+ return 36.0
29
+ return float(value)
26
30
 
27
31
  @property
28
32
  def min_temp(self) -> float:
29
- return cast(float, self.get_value("min_temp_setpoint", 0))
33
+ value = self.get_value("min_temp_setpoint", 0)
34
+
35
+ if value is None or value == 0:
36
+ return 5.0
37
+ return float(value)
30
38
 
31
39
  @property
32
40
  def hvac_action(self) -> str:
@@ -40,7 +40,7 @@ exclude = ".venv/.*"
40
40
 
41
41
  [tool.poetry]
42
42
  name = "python-hilo"
43
- version = "2024.6.1"
43
+ version = "2024.10.1"
44
44
  description = "A Python3, async interface to the Hilo API"
45
45
  readme = "README.md"
46
46
  authors = ["David Vallee Delisle <me@dvd.dev>"]
@@ -74,7 +74,7 @@ python-dateutil = ">=2.8.2"
74
74
  ruyaml = ">=0.91.0"
75
75
  python = "^3.9.0"
76
76
  voluptuous = ">=0.13.1"
77
- websockets = ">=8.1,<13.0"
77
+ websockets = ">=8.1,<14.0"
78
78
 
79
79
  [tool.poetry.dev-dependencies]
80
80
  Sphinx = "^7.1.2"