Skip to content

Commit

Permalink
Fix number error
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront committed Jan 19, 2024
1 parent b96dcbc commit 15e00d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/econet300/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EconetNumberEntityDescription(NumberEntityDescription):
_attr_native_value: float | None = None
_attr_native_min_value: float | None = None
_attr_native_max_value: float | None = None
_attr_native_step: int
_attr_native_step: int = 1


NUMBER_TYPES: tuple[EconetNumberEntityDescription, ...] = (
Expand Down Expand Up @@ -115,7 +115,7 @@ async def async_set_native_value(self, value: float) -> None:
)
return

if not await self._api.set_param(self.entity_description.key, int(value)):
if not await self.api.set_param(self.entity_description.key, int(value)):
_LOGGER.warning("Setting value failed")
return

Expand Down

0 comments on commit 15e00d9

Please sign in to comment.