diff --git a/LICENSE b/LICENSE index 32b66c2..84f7c28 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2023 David Vallee Delisle +Copyright (c) 2020-2024 David Vallee Delisle Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pyhilo/device/climate.py b/pyhilo/device/climate.py index af3ceaa..6261c2d 100644 --- a/pyhilo/device/climate.py +++ b/pyhilo/device/climate.py @@ -22,11 +22,19 @@ def target_temperature(self) -> float: @property def max_temp(self) -> float: - return cast(float, self.get_value("max_temp_setpoint", 0)) + value = self.get_value("max_temp_setpoint", 30) + + if value is None or value == 0: + return 36.0 + return float(value) @property def min_temp(self) -> float: - return cast(float, self.get_value("min_temp_setpoint", 0)) + value = self.get_value("min_temp_setpoint", 5) + + if value is None or value == 0: + return 5.0 + return float(value) @property def hvac_action(self) -> str: diff --git a/pyproject.toml b/pyproject.toml index e765fb9..d4e6337 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ exclude = ".venv/.*" [tool.poetry] name = "python-hilo" -version = "2024.6.1" +version = "2024.10.1" description = "A Python3, async interface to the Hilo API" readme = "README.md" authors = ["David Vallee Delisle "]