Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasmota IRHVAC for HA v2021.12.1+ v2021.12.21 Not working adding climate components. #60

Closed
xinux87 opened this issue Dec 29, 2021 · 4 comments
Assignees

Comments

@xinux87
Copy link

xinux87 commented Dec 29, 2021

Hi I'm getting this errro after update, HOme assistant and To the last IRHVAC version.

It was working fine...

Thanks!!!

Logger: homeassistant.components.climate
Source: custom_components/tasmota_irhvac/climate.py:998
Integration: Climate (documentation, issues)
First occurred: 12:49:11 PM (2 occurrences)
Last logged: 12:49:11 PM

Error adding entities for domain climate with platform tasmota_irhvac
Error while setting up tasmota_irhvac platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 613, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 747, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/tasmota_irhvac/climate.py", line 525, in async_added_to_hass
self._async_update_temp(temp_sensor_state.state)
File "/config/custom_components/tasmota_irhvac/climate.py", line 998, in _async_update_temp
self._cur_temp = float(state.state)
AttributeError: 'str' object has no attribute 'state'

@leranp
Copy link

leranp commented Dec 29, 2021

Same here

@nao-pon
Copy link
Collaborator

nao-pon commented Jan 2, 2022

@xinux87 , @leranp Please modify line 525 of climate.py as follows and let us know the result.

FROM:
self._async_update_temp(temp_sensor_state.state)
TO:
self._async_update_temp(temp_sensor_state)

@nao-pon nao-pon self-assigned this Jan 2, 2022
@leranp
Copy link

leranp commented Jan 2, 2022

@xinux87 , @leranp Please modify line 525 of climate.py as follows and let us know the result.

FROM: self._async_update_temp(temp_sensor_state.state) TO: self._async_update_temp(temp_sensor_state)

its fixed. Thanks

@xinux87
Copy link
Author

xinux87 commented Jan 4, 2022

It works!!
thank you, so much sorry for the delay, !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants