Skip to content

Commit

Permalink
Force value to int in numbers platforms #97
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou committed Jan 30, 2024
1 parent 6be5558 commit 2e80c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def async_set_native_value(self, value: float) -> None:
if scale_factor := self._config.get(CONF_SCALING):
value = value / float(scale_factor)

await self._device.set_dp(value, self._dp_id)
await self._device.set_dp(int(value), self._dp_id)

# Default value is the minimum value
def entity_default_value(self):
Expand Down

0 comments on commit 2e80c00

Please sign in to comment.