Tuya Thermostat showing (e.g 4 deg. instead of 20 deg.)

I have a weird issue where my Tuya thermostat in Home Assistant (through the interface and HomeKit integration) shows a wrong unit. For example, instead of 20 degrees, it shows as 4 degrees.