diff --git a/custom_components/petkit/number.py b/custom_components/petkit/number.py index bfe0f73..da9f1cb 100644 --- a/custom_components/petkit/number.py +++ b/custom_components/petkit/number.py @@ -235,7 +235,9 @@ class PetKitNumberDesc(PetKitDescSensorBase, NumberEntityDescription): mode=NumberMode.BOX, native_value=lambda device: device.pet_details.weight, action=lambda api, device, value: api.send_api_request( - device.id, PetCommand.PET_UPDATE_SETTING, {"weight": int(value)} + device.id, + PetCommand.PET_UPDATE_SETTING, + {"weight": round(float(value), 1)}, ), only_for_types=[PET], ),