Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit 8da903f

Browse files
iMicknlvlebourl
andauthored
Fix number entity (#667)
Co-authored-by: Vincent Le Bourlot <[email protected]>
1 parent e5468fe commit 8da903f

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

custom_components/tahoma/entity.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ class OverkizNumberDescription(NumberEntityDescription):
128128
"""Class to describe an Overkiz number."""
129129

130130
command: str = None
131-
132-
max_value: float | None = None
133-
min_value: float | None = None
134131
min_step: float | None = None
135132
value: float | None = None
136133
state: Callable[[str], bool] = lambda state: state

custom_components/tahoma/number.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,3 @@ async def async_set_value(self, value: float) -> None:
8080
await self.executor.async_execute_command(
8181
self.entity_description.command, value
8282
)
83-
84-
@property
85-
def min_value(self) -> float:
86-
"""Return the minimum value."""
87-
return self.entity_description.min_value or self._attr_min_value
88-
89-
@property
90-
def max_value(self) -> float:
91-
"""Return the maximum value."""
92-
return self.entity_description.max_value or self._attr_max_value

0 commit comments

Comments
 (0)