Skip to content

Commit

Permalink
fix #68 decimal value in number entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuen Lee committed Sep 13, 2023
1 parent 44a2de6 commit e675f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alfen_wallbox/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def native_value(self) -> float | None:

async def async_set_native_value(self, value: float) -> None:
"""Update the current value."""
await self._device.set_value(self.entity_description.api_param, int(value))
await self._device.set_value(self.entity_description.api_param, float(value))
self._set_current_option()

def _get_current_option(self) -> str | None:
Expand Down

0 comments on commit e675f8b

Please sign in to comment.