trvqhuy / nestup_evn

A simple yet efficient custom component to fetch data from EVN Vietnam for Home Assistant
https://github.com/trvqhuy/nestup_evn
Apache License 2.0
65 stars 29 forks source link

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

Closed mcnguyen33r closed 1 year ago

mcnguyen33r commented 1 year ago

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):

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

christianonpele commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.