|
本帖最后由 Clark 于 2021-10-14 09:46 编辑
Logger: homeassistant.setup
Source: setup.py:178
First occurred: 07:46:15 (1 occurrences)
Last logged: 07:46:15
Setup failed for tuya: Unable to import component: cannot import name 'AuthType' from 'tuya_iot' (/usr/local/lib/python3.9/site-packages/tuya_iot/__init__.py)
Logger: homeassistant.setup
Source: setup.py:178
First occurred: 09:36:09 (1 occurrences)
Last logged: 09:36:09
Setup failed for tuya_v2: Unable to import component: cannot import name 'ProjectType' from 'tuya_iot' (/usr/local/lib/python3.9/site-packages/tuya_iot/__init__.py)
此错误来自自定义集成。
Logger: custom_components.localtuya.common
Source: custom_components/localtuya/pytuya/__init__.py:196
Integration: LocalTuya integration (documentation, issues)
First occurred: 09:34:33 (138 occurrences)
Last logged: 09:45:31
[6c2...wfs] Connect to 192.168.1.229 failed
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 149, in _make_connection
status = await self._interface.status()
File "/config/custom_components/localtuya/pytuya/__init__.py", line 472, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 457, in exchange
payload = self._decode_payload(msg.payload)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 544, in _decode_payload
payload = self.cipher.decrypt(payload, False)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 196, in decrypt
return self._unpad(decryptor.update(enc) + decryptor.finalize()).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 0: invalid start byte
目前装了localtuya,tuya v1,tuya v2这三个集成。
升级HA之前可以正常运行,除了tuya v2没有状态反馈其他正常。
目前都不能正常工作。 |
|