Error setting up entry 油价 for oil_price
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/oil_price/__init__.py", line 8, in async_setup_entry
hass.config_entries.async_forward_entry_setup(entry, "sensor")
AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'?
日志记录器: homeassistant.config_entries
来源: config_entries.py:749
首次出现: 12:08:39 (4 次出现)
上次记录: 12:09:23
Error setting up entry 油价 for oil_price
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/oil_price/__init__.py", line 8, in async_setup_entry
hass.config_entries.async_forward_entry_setup(entry, "sensor")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'?