Tuya Binding: HANDLER_INITIALIZING_ERROR after OH update

after ugrading to openHAB 5.2.1. my Tuya Thing won’t go online anymore.

HANDLER_INITIALIZING_ERROR

Channel type ‘tuya:5xe6dkfmdafvrasa_expansion_valve’ is not known

Channel expansion_valve creation aborted, unit "P" has no known dimension, please report as bug.
An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.tuya.internal.handler.TuyaDeviceHandler@17523f48': Channel type 'tuya:5xe6dkfmdafvrasa_expansion_valve' is not known
Exception occurred while initializing handler of thing 'tuya:tuyaDevice:TuyaPoolPump': Channel type 'tuya:5xe6dkfmdafvrasa_expansion_valve' is not known

any idea how to fix this? thanks

Do as the logs ask and report this as a bug. Indeed, there is no unit P supported by OH so the binding is defining a Channel with an incorrect unit.

As a work-around you can link this Channel to a plain Number Item. That should cause it to ignore the unit and perhaps get past this error message. You could also potentially use a transformation sciript to replace the unit with what ever it’s supposed to be (Pascals perhaps, which would be Pa).