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

AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'. Did you mean: 'async_unload_platforms' #990

Open
KiiDii opened this issue Jun 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KiiDii
Copy link

KiiDii commented Jun 3, 2024

I get an error after adding the integration:

Logger: homeassistant.config_entries
Source: config_entries.py:584
First occurred: 21:47:14 (1 occurrences)
Last logged: 21:47:14

Error setting up entry [email protected] for tuya_v2
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 584, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tuya_v2/init.py", line 118, in async_setup_entry
success = await _init_tuya_sdk(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tuya_v2/init.py", line 176, in _init_tuya_sdk
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'. Did you mean: 'async_unload_platforms'?

Algorithm for my actions:

  1. Installed the add-on via HACS using these instructions
  2. Restarted Home Assistant
  3. Went to the integration section and found Tuya v2 there.
  4. In the Cloud Project Type section I selected: ‘Smart Home PaaS’.
  5. In credentials section I specified my credentials and country code: ‘ua’. In the field: Mobile app I specified ‘Tuya App’.
  6. Integration is added, but I see: ‘Failed To Setup’.
  7. I looked at the logs and saw the logs I specified at the beginning of the post.

Versions:

  • Home Assistant Core: 2024.5.5
  • Home Assistant Supervisor: 2024.05.1
  • Home Assistant Operating System: 12.3
  • Home Assistant Frontend: 20240501.1
  • HACS version: 1.34.0

Hardware

  • Raspberry Pi 4 (rpi4-64)
@KiiDii KiiDii added the bug Something isn't working label Jun 3, 2024
@ketiv223
Copy link

ketiv223 commented Jul 18, 2024

такая же проблема, есть решение?

`Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_v2/__init__.py", line 118, in async_setup_entry
    success = await _init_tuya_sdk(hass, entry)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_v2/__init__.py", line 176, in _init_tuya_sdk
    hass.config_entries.async_setup_platforms(entry, PLATFORMS)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'. Did you mean: 'async_unload_platforms'?`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants