AttributeError: module 'homeassistant.components.mqtt' has no attribute 'subscription'
Closed this issue · 6 comments
Logger: homeassistant.components.climate
Source: custom_components/tasmota_irhvac/climate.py:643
Integration: Climate (documentation, issues)
First occurred: 11:45:03 PM (2 occurrences)
Last logged: 11:45:03 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 317, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 529, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/tasmota_irhvac/climate.py", line 500, in async_added_to_hass
await self._subscribe_topics()
File "/config/custom_components/tasmota_irhvac/climate.py", line 643, in _subscribe_topics
self._sub_state = await mqtt.subscription.async_subscribe_topics(
AttributeError: module 'homeassistant.components.mqtt' has no attribute 'subscription'
Version | core-2021.3.4
-- | --
Installation Type | Home Assistant Container
Development | false
Supervisor | false
Docker | true
Virtual Environment | false
Python Version | 3.8.7
Operating System Family | Linux
Operating System Version | 5.10.22-0-lts
CPU Architecture | x86_64
Timezone | Europe/Moscow
This custom integration needs mqtt component. I guess you are not using home assistant operating system, but just the core, right?
Tích hợp tùy chỉnh này cần thành phần mqtt. Tôi đoán bạn đang không sử dụng hệ điều hành trợ lý gia đình, mà chỉ là phần lõi, phải không?
hello Sir!!! Can you help me?
Logger: homeassistant.components.climate
Source: custom_components/tasmota_irhvac/climate.py:643
Integration: Climate (documentation, issues)
First occurred: 5:03:08 PM (2 occurrences)
Last logged: 5:03:08 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 383, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 588, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 614, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/tasmota_irhvac/climate.py", line 500, in async_added_to_hass
await self._subscribe_topics()
File "/config/custom_components/tasmota_irhvac/climate.py", line 643, in _subscribe_topics
self._sub_state = await mqtt.subscription.async_subscribe_topics(
AttributeError: module 'homeassistant.components.mqtt' has no attribute 'subscription'
Version
core-2021.6.2
Version | core-2021.4.4 |
---|---|
Installation Type | Home Assistant OS |
Development | false |
Supervisor | true |
Docker | true |
Virtual Environment | false |
Python Version | 3.8.7 |
Operating System Family | Linux |
Operating System Version | 5.4.83-v8 |
CPU Architecture | aarch64 |
Timezone | Asia/Ho_Chi_Minh |
I face exactly this error when trying to setup remote for my Gree AC. And I'm sure that my HassIO already integrated with MQTT, I could use HassIO UI to subscribe to events from tasmota ir normally.
Might be some API of MQTT changed?
RESOLVED!!!
Just install Tasmota Integration and make sure your IR blaster can be discovered!
System Health
version | core-2021.6.6 |
---|---|
installation_type | Home Assistant Supervised |
dev | false |
hassio | true |
docker | true |
virtualenv | false |
python_version | 3.8.9 |
os_name | Linux |
os_version | 5.9.0-arm-64 |
arch | aarch64 |
timezone | Asia/Ho_Chi_Minh |
Home Assistant Community Store
GitHub API | ok |
---|---|
Github API Calls Remaining | 4759 |
Installed Version | 1.13.2 |
Stage | running |
Available Repositories | 849 |
Installed Repositories | 5 |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Debian GNU/Linux 10 (buster) |
---|---|
update_channel | stable |
supervisor_version | supervisor-2021.06.6 |
docker_version | 20.10.7 |
disk_total | 27.8 GB |
disk_used | 5.4 GB |
healthy | true |
supported | true |
supervisor_api | ok |
version_api | ok |
installed_addons | Samba share (9.5.1), Mosquitto broker (6.0.1), File editor (5.3.1) |
Lovelace
dashboards | 1 |
---|---|
resources | 0 |
mode | auto-gen |
Do you still have the issue/problem?
OK, closing the issue as workaround was presented.