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

[EVNNPC] AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms' #25

Closed
mcnguyen33r opened this issue May 8, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@mcnguyen33r
Copy link

Mô tả lỗi / Describe the bug
Không setup được (Failed to set up) mặc dù thông tin điền vào chính xác

Logs
2023-05-08 14:28:28.918 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration nestup_evn which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-08 14:29:01.467 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry PD11000027XXX for nestup_evn
File "/config/custom_components/nestup_evn/init.py", line 12, in async_setup_entry

Log Details (ERROR)
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/nestup_evn/init.py:12
Integration: EVN Data Fetcher (documentation, issues)
First occurred: 2:29:01 PM (1 occurrences)
Last logged: 2:29:01 PM

Error setting up entry PD11000027XXX for nestup_evn
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/nestup_evn/init.py", line 12, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, ["sensor"])
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

Ảnh chụp / Screenshots
image
Server (thông tin máy chủ đang chạy HA):
Home Assistant 2023.5.2
Supervisor 2023.04.1
Frontend 20230503.3 - latest

Integration (thông tin phiên bản Integration đã cài đặt):

  • Installation method: HACS
  • Version: v2.1.0

Thông tin thêm
Thêm những thông tin khác ngoài các thông tin kể trên.

@mcnguyen33r mcnguyen33r added the bug Something isn't working label May 8, 2023
@christianonpele
Copy link

same with EVN Saigon.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/nestup_evn/__init__.py", line 12, in async_setup_entry hass.config_entries.async_setup_platforms(entry, ["sensor"]) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

@haind13
Copy link

haind13 commented May 8, 2023

cacs b

Mô tả lỗi / Describe the bug Không setup được (Failed to set up) mặc dù thông tin điền vào chính xác

Logs 2023-05-08 14:28:28.918 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration nestup_evn which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 14:29:01.467 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry PD11000027XXX for nestup_evn File "/config/custom_components/nestup_evn/init.py", line 12, in async_setup_entry

Log Details (ERROR) This error originated from a custom integration. Logger: homeassistant.config_entries Source: custom_components/nestup_evn/init.py:12 Integration: EVN Data Fetcher (documentation, issues) First occurred: 2:29:01 PM (1 occurrences) Last logged: 2:29:01 PM

Error setting up entry PD11000027XXX for nestup_evn Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/nestup_evn/init.py", line 12, in async_setup_entry hass.config_entries.async_setup_platforms(entry, ["sensor"]) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

Ảnh chụp / Screenshots image Server (thông tin máy chủ đang chạy HA): Home Assistant 2023.5.2 Supervisor 2023.04.1 Frontend 20230503.3 - latest

Integration (thông tin phiên bản Integration đã cài đặt):

  • Installation method: HACS
  • Version: v2.1.0

Thông tin thêm Thêm những thông tin khác ngoài các thông tin kể trên.

Các bạn download lại bản mới fix 2 ngày trước, rồi add devices lại là đc nhé! mình đã cài thành công

@mcnguyen33r
Copy link
Author

Thử lại không được bạn ạ.

  1. Xóa hết thư mục nestup_evn
  2. Khởi động lại HA
  3. Vào HACS tải lại EVN Fetcher
  4. Khởi động lại HA
  5. Setup lại EVN
  6. Vẫn lỗi như vậy
    image
    Log Details (ERROR)
    This error originated from a custom integration.
    Logger: homeassistant.config_entries
    Source: custom_components/nestup_evn/init.py:12
    Integration: EVN Data Fetcher (documentation, issues)
    First occurred: 7:59:38 AM (1 occurrences)
    Last logged: 7:59:38 AM

Error setting up entry PD1100002XXX for nestup_evn
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/nestup_evn/init.py", line 12, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, ["sensor"])
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

@haind13
Copy link

haind13 commented May 9, 2023

Thử lại không được bạn ạ.

  1. Xóa hết thư mục nestup_evn
  2. Khởi động lại HA
  3. Vào HACS tải lại EVN Fetcher
  4. Khởi động lại HA
  5. Setup lại EVN
  6. Vẫn lỗi như vậy
    image
    Log Details (ERROR)
    This error originated from a custom integration.
    Logger: homeassistant.config_entries
    Source: custom_components/nestup_evn/init.py:12
    Integration: EVN Data Fetcher (documentation, issues)
    First occurred: 7:59:38 AM (1 occurrences)
    Last logged: 7:59:38 AM

Error setting up entry PD1100002XXX for nestup_evn Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/nestup_evn/init.py", line 12, in async_setup_entry hass.config_entries.async_setup_platforms(entry, ["sensor"]) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

bạn thử cách cài ko qua HACS đi :D

@trvqhuy
Copy link
Owner

trvqhuy commented May 9, 2023

Chào các bạn,

Các lỗi liên quan đến 'async_setup_platforms' đã được fix ở version mới nhất v2.2.0.

Hãy cập nhật phiên bản mới nhất để tiếp tục sử dụng Integration.

@trvqhuy trvqhuy closed this as completed May 9, 2023
@trvqhuy trvqhuy changed the title EVN Hà Nội - Lỗi Setup [EVNNPC] AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms' May 9, 2023
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

4 participants