找回密码
 立即注册
搜索
楼主: Walter

[插件集成] 油价免配置文件版

[复制链接]

0

主题

226

回帖

2867

积分

金牌会员

积分
2867
金钱
2641
HASS币
0
发表于 5 天前 | 显示全部楼层
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'?
回复

使用道具 举报

2

主题

17

回帖

316

积分

中级会员

积分
316
金钱
297
HASS币
0
 楼主| 发表于 前天 10:53 | 显示全部楼层
sxrcm 发表于 2025-6-16 09:54
Error setting up entry 油价 for oil_price
Traceback (most recent call last):
File "/usr/src/homeassi ...

你这是用的最新的版本吗?
回复

使用道具 举报

10

主题

79

回帖

1116

积分

金牌会员

积分
1116
金钱
1027
HASS币
0
发表于 前天 12:11 | 显示全部楼层
用不了,还好我的Nodered流程没删除,要不然又得折腾一会。
日志记录器: 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'?
回复

使用道具 举报

olip 手机认证

1

主题

26

回帖

151

积分

注册会员

积分
151
金钱
124
HASS币
0
发表于 前天 17:05 | 显示全部楼层
好用~谢谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-6-21 13:25 , Processed in 0.105851 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表