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

能更新下支持0.92版本吗 #4

Open
cachenow opened this issue May 12, 2019 · 9 comments
Open

能更新下支持0.92版本吗 #4

cachenow opened this issue May 12, 2019 · 9 comments

Comments

@cachenow
Copy link

好久没见作者在hassbian发帖了,现在升级了0.92插件不能用了。

@zhanghm110
Copy link

同求

@zhanghm110
Copy link

小白不知道怎么改

@Qetesh
Copy link

Qetesh commented Jun 20, 2019

➜ konke cat manifest.json
{
"domain": "konke",
"name": "konke",
"documentation": "https://github.com/jedmeng/homeassistant-konke",
"dependencies": [],
"codeowners": ["@jedmeng"],
"requirements": ["pykonkeio==2.1.7"]
}

➜ konke pwd
/home/homeassistant/.homeassistant/custom_components/konke

按照这个改下可以用的 @zhanghm110 @cachenow

@5high
Copy link

5high commented Jun 20, 2019

@Qetesh 你好.homeassistant/custom_components/konke 这个目录下面的结构是什么样子的?

请问您已经成功再0.92上面使用了吗? 我按照新格式改了一下,启动还是无法加载。

目前我是使用command_line配合konkeio的命令行来控制插座。

@Qetesh
Copy link

Qetesh commented Jun 20, 2019

➜ custom_components cd /home/homeassistant/.homeassistant/custom_components/konke
➜ konke ll
总用量 28K
-rw-r--r-- 1 homeassistant homeassistant 204 6月 10 16:19 manifest.json
drwxr-xr-x 2 homeassistant homeassistant 4.0K 4月 24 09:49 pycache
-rwxr-xr-x 1 homeassistant homeassistant 7.4K 4月 24 09:47 remote.py
-rwxr-xr-x 1 homeassistant homeassistant 11K 4月 24 09:47 switch.py
➜ konke

主要是两方面变了,种类文件夹变成platfrom文件夹,另一个是添加manifest.json描述文件

@5high
Copy link

5high commented Jun 20, 2019

Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_platform.py", line 270, in _async_add_entity
if entity.unique_id is not None:
File "/root/.homeassistant/custom_components/konke/switch.py", line 127, in unique_id
return '%s:%s' % (self._device.uuid, self.type)
AttributeError: 'MiniK' object has no attribute 'uuid'
@Qetesh 插件还是报错了

我的版本是0.93

@Qetesh
Copy link

Qetesh commented Jun 20, 2019

我的是0.94,奇怪你报错的127行和我的不一样呢,要用master分支代码。

@zhanghm110
Copy link

zhanghm110 commented Jun 20, 2019 via email

@Scribing
Copy link

主要是把最新版的 uuid 改回成 mac和pykonkeio == 2.1.7,HA 0.111.0已经能正常运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants