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
63 stars 28 forks source link

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

Closed hongthang1110 closed 1 year ago

hongthang1110 commented 1 year ago

Mô tả lỗi / Describe the bug Sau khi nâng cấp Hass lên bản mới Home Assistant 2023.5.2 thì bị lỗi không load được device EVN

Logs Logger: homeassistant.config_entries Source: custom_components/nestup_evn/init.py:12 Integration: EVN Data Fetcher (documentation, issues) First occurred: 09:31:00 (1 occurrences) Last logged: 09:31:00

Error setting up entry PD30000211273 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 image

Server (thông tin máy chủ đang chạy HA):

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

Thông tin thêm Sau khi nâng cấp Hass lên bản mới Home Assistant 2023.5.2 thì bị lỗi không load được device EVN

datdp commented 1 year ago

image Cũng lỗi như bác ở trên. Điện lực Nam Từ Liêm - Hà Nội

justintrann commented 1 year ago

The same to you at EVN Ho Chi Minh City

trvqhuy commented 1 year ago

Same as #22 #25, the 'async_setup_platforms' related error has been fixed in the newest version v2.2.0.

Please update the newest version to solve this problem.