core: Tuya climate devices reported as unsupported after HA update to 2021.12.7

The problem

After HA update to 2021.12.7 devices which did work before are reported in Log as unsupported. Deleting Tuya integration and re-integrate did not lead to a working system.

What version of Home Assistant Core has the issue?

2021.12.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-01-04 13:44:06 ERROR (MainThread) [homeassistant.components.climate] Error while setting up tuya platform for climate
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/climate.py", line 107, in async_setup_entry
async_discover_device([*hass_data.device_manager.device_map])
File "/usr/src/homeassistant/homeassistant/components/tuya/climate.py", line 99, in async_discover_device
TuyaClimateEntity(
File "/usr/src/homeassistant/homeassistant/components/tuya/climate.py", line 187, in __init__
type_data = IntegerTypeData.from_json(
File "/usr/src/homeassistant/homeassistant/components/tuya/base.py", line 77, in from_json
return cls(**json.loads(data))
TypeError: __init__() missing 4 required positional arguments: 'min', 'max', 'scale', and 'step'

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Hi, I’ve created a new project, payed attention to step 6 and it did work for me. The project I was using before I’ve tried to fix and added the MQTT device notification there as well, but this didn’t work for me. Also very hard to find after project creation and not created directly with the project setup process. Thank for all the work you did. I’m going to close this Issue