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

Klight 在HA升级到0.112后报错 #11

Open
cachenow opened this issue Jul 3, 2020 · 2 comments
Open

Klight 在HA升级到0.112后报错 #11

cachenow opened this issue Jul 3, 2020 · 2 comments

Comments

@cachenow
Copy link

cachenow commented Jul 3, 2020

首先期待作者回归。

日志如下:

日志详细信息( ERROR )
Logger: homeassistant.helpers.entity
Source: custom_components/konke/light.py:179
First occurred: 下午4:11:25 (25 occurrences)
Last logged: 下午4:23:46

Update for light.klight fails
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pykonkeio/device/klight.py", line 40, in update
_, r, g, b, w, t, _ = m2.split('#')
ValueError: not enough values to unpack (expected 7, got 6)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 463, in async_device_update
await self.async_update() # type: ignore
File "/config/custom_components/konke/light.py", line 179, in async_update
await self._device.update(type='light')
File "/usr/local/lib/python3.7/site-packages/pykonkeio/device/klight.py", line 46, in update
raise error.ErrorMessageFormat
pykonkeio.error.ErrorMessageFormat: Error: wrong message

@1ban5599
Copy link

您好,按照您的教程安装小K插座成功,但在概览中找不到小K的图标,通知中出现如下提示:
Invalid config
The following integrations and platforms could not be set up:
switch.konke
Please check your config.

New devices discovered
We have discovered new devices on your network. Check it out
请问怎么解决?

@captainnx
Copy link

同样报错,有解决方案吗

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

3 participants