mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-13 22:54:26 -04:00
Add oven climate support
This commit is contained in:
parent
7c6ac15901
commit
4888f2b1d0
4 changed files with 28 additions and 1 deletions
|
@ -26,16 +26,28 @@ class HonParameterRange(HonParameter):
|
|||
def min(self) -> float:
|
||||
return self._min
|
||||
|
||||
@min.setter
|
||||
def min(self, min: float) -> None:
|
||||
self._min = min
|
||||
|
||||
@property
|
||||
def max(self) -> float:
|
||||
return self._max
|
||||
|
||||
@max.setter
|
||||
def max(self, max: float) -> None:
|
||||
self._max = max
|
||||
|
||||
@property
|
||||
def step(self) -> float:
|
||||
if not self._step:
|
||||
return 1
|
||||
return self._step
|
||||
|
||||
@step.setter
|
||||
def step(self, step: float) -> None:
|
||||
self._step = step
|
||||
|
||||
@property
|
||||
def value(self) -> str | float:
|
||||
return self._value if self._value is not None else self._min
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue