Closed tgregory86 closed 3 weeks ago
The way this report is written, makes it appear that the problem is with the device itself, which would mean it is outside my control. I suspect that is not the case though, and this can be solved simply by adding the unit which the device is actually using.
This form is for reporting bugs. If you have encountered a bug, you should generally have some log messages or device diagnostics to show something is going wrong. If your problem is more of a question or a request for help, then Discussions is probably a more suitable venue.
Describe the bug A clear and concise description of what the bug is.
Temperature is not reported in C, F or K degresss.
2024-06-10 11:13:16.144 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.water_quality_temperature (<class 'custom_components.tuya_local.sensor.TuyaLocalSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('temperature') it is using; expected one of ['°C', '°F', 'K']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/make-all/tuya-local/issues
To Reproduce Steps to reproduce the behavior including the device the issue was observed with: Add device to home assistant
Expected behavior A clear and concise description of what you expected to happen. Temperature is provided in a expected format of C, F or K degrees.
Additional context Add any other context about the problem here.
If the bug involves a device, then please include device diagnostics from Settings / Devices & Services / Tuya Local (your device) / "1 device"
tuya_local-8cb081ed140d5edc9c63c2b51e92ec81-Water quality-dbc975fa9f8c3878f89d15655c863bc9.json
Please check if there are messages from Tuya Local in the Home Assistant log (Settings / System / Logs), and include those too.
2024-06-10 11:13:16.144 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.water_quality_temperature (<class 'custom_components.tuya_local.sensor.TuyaLocalSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('temperature') it is using; expected one of ['°C', '°F', 'K']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/make-all/tuya-local/issues
If applicable, add screenshots to help explain your problem.