TS0201 Temp and Hum Sensor returning no decimal places if value is x.0
What happened?
I have temperature_precision set to 1 for these devices (WSD500A TuYa). The temperature values are returned as expected unless the value is n.0, in which case it is returned as an integer.
Attached is some debug output (from Node-RED) showing the issue. The first reading is as expected, the second is not.
What did you expect to happen?
The temperature reading should always return one decimal place.
How to reproduce it (minimal and precise)
Set to one decimal place, wait for a reading ending in .0
Zigbee2MQTT version
1.31.2
Adapter firmware version
20210120
Adapter
Electrollama stick
Debug log
No response
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
I should add that this causes problems downstream when a float is expected, but an integer arrives...
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days