Skip to content

Commit

Permalink
Fix number entity (#667)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Le Bourlot <[email protected]>
  • Loading branch information
iMicknl and vlebourl authored Jan 25, 2022
1 parent e5468fe commit 8da903f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions custom_components/tahoma/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ class OverkizNumberDescription(NumberEntityDescription):
"""Class to describe an Overkiz number."""

command: str = None

max_value: float | None = None
min_value: float | None = None
min_step: float | None = None
value: float | None = None
state: Callable[[str], bool] = lambda state: state
Expand Down
10 changes: 0 additions & 10 deletions custom_components/tahoma/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,3 @@ async def async_set_value(self, value: float) -> None:
await self.executor.async_execute_command(
self.entity_description.command, value
)

@property
def min_value(self) -> float:
"""Return the minimum value."""
return self.entity_description.min_value or self._attr_min_value

@property
def max_value(self) -> float:
"""Return the maximum value."""
return self.entity_description.max_value or self._attr_max_value

0 comments on commit 8da903f

Please sign in to comment.