Thanks to visit codestin.com
Credit goes to github.com

Skip to content

New Tuya Integration - error while setting up climate entities #59372

@gaspoza

Description

@gaspoza

The problem

Before the release of 2021.10.0 and the New tuya integration, my eurom heaters are working great with HA.
With the new integration, I succeed with installing the new integration and I saw my 3 heaters in the devices lists.
The problem is while setting up the climate entities.

Information from IOT tuya:
Product Name: LPL16-2/3 HEATER
Product Category: qn

When I go to the "Device Debugging" tab, I receive a blank page with "An unexpected error has occurred."

Thanks for your help.

What version of Home Assistant Core has the issue?

core-2021.11.1

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?

Logger: homeassistant.components.climate
Source: components/tuya/base.py:47
Integration: Climate (documentation, issues)
First occurred: 2:44:39 PM (1 occurrences)
Last logged: 2:44:39 PM

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 192, in init
self._attr_max_temp = type_data.max_scaled
File "/usr/src/homeassistant/homeassistant/components/tuya/base.py", line 33, in max_scaled
return self.scale_value(self.max)
File "/usr/src/homeassistant/homeassistant/components/tuya/base.py", line 47, in scale_value
return value * 1.0 / (10 ** self.scale)
TypeError: can't multiply sequence by non-int of type 'float'

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions