Flood sensor with unusual output?

Hi, I have a zigbee flood sensor with this state type:

    "status_range": {
      "watersensor_state": {
        "type": "Enum",
        "value": {
          "range": [
            "1",
            "2"
          ]
        }
      },

I verified that Wet is “1” and Dry is “2”. The problem is that the device class is “moisture” that recognise only “on” and “off” states. For this reason HA UI doesn’t show the correct state. It shows always “Dry” since both values (“1” and “2”) are mapped to “off” I suppose.
Ho can I remap “1” and “2” to “on” and “off”?

I’ve added these sensors with Tuya integration for this reason the configuration is not persent on .yaml file. I need to override this sensor changing the values behaviours, but how?