diff --git a/custom_components/econet300/number.py b/custom_components/econet300/number.py index 9ebb9bc..8fdb661 100644 --- a/custom_components/econet300/number.py +++ b/custom_components/econet300/number.py @@ -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, ...] = ( @@ -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