OH4 migration

Hi,
I have migrated to OH4.1 and have the following errors in the log:

2024-01-03 10:43:15.703 [WARN ] [rest.core.item.EnrichedItemDTOMapper] - Failed transforming the state '2.0' on item 'huit_battery_status' with pattern 'MAP(battery_device_status.map):%s': Target value not found in map for '2.0'

Number huit_battery_status "Battery status[MAP(battery_device_status.map):%s]" (gSolar) { channel="modbus:data:huawei_inverter:huawei_battery_status:hw_battery_status:number" , expire="4m"}

battery_device_status.map:

NULL=N/A
-=N/D
UNDEF=N/D
0=Offline
1=Standby
2=Running
3=Fault
4=Sleep Mode

Is there a way to format the channel to return an integer number (2) instead of a decimal number (2.0) so that the MAP transformation will work propoerly?
I know I could add the number 2.0 in the map file, but I am looking for a more general solution.

BTW in version 3, there was no such error message.

thanks

:person_shrugging: You don’t show the Thing and Channel. Maybe yes, maybe no. You definitely could transform it in a script transform profile. But if you will be transforming it you may as well do the mapping there as well.