Tuya dehumidifier fails

I have a Tuya dehumidifier - working and working with the app.

When installing the integration Tuya and adding my device no error occure - but no entities are added.

Looking in the log something fails - but I do not know what:

Logger: homeassistant.components.humidifier
Source: components/tuya/base.py:48
Integration: Humidifier (documentation, issues)
First occurred: 14.04.26 (2 occurrences)
Last logged: 14.07.28

Error while setting up tuya platform for humidifier
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/tuya/humidifier.py", line 72, in async_setup_entry
    async_discover_device([*hass_data.device_manager.device_map])
  File "/usr/src/homeassistant/homeassistant/components/tuya/humidifier.py", line 68, in async_discover_device
    TuyaHumidifierEntity(device, hass_data.device_manager, description)
  File "/usr/src/homeassistant/homeassistant/components/tuya/humidifier.py", line 114, in __init__
    self._attr_min_humidity = int(type_data.min_scaled)
  File "/usr/src/homeassistant/homeassistant/components/tuya/base.py", line 39, in min_scaled
    return self.scale_value(self.min)
  File "/usr/src/homeassistant/homeassistant/components/tuya/base.py", line 48, in scale_value
    return value * 1.0 / (10 ** self.scale)
TypeError: can't multiply sequence by non-int of type 'float'

Anyone else has this problem or know what to do?

Core: core-2021.12.8
Supervisor: supervisor-2021.12.2

I’ve also got the same issue with an Eeese Emil. It will debug through the IOT API fine.

In my case I am assuming the issue is dehumidify_set_value returns strings instead of integers.

It should look like this according to spec
{“unit”:“%”,“min”:25,“max”:80,“scale”:0,“step”:5}

But looks like this
{"unit":"%","min":"25","max":"80","scale":"0","step":"5"}"

@H00lig4n - please see Dehumidifier not supported · Issue #774 · tuya/tuya-home-assistant · GitHub

Mayby you can here. I am unable to generate a diagnostics log for the developer.