- 积分
- 132
- 金钱
- 124
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 132
- 金钱
- 124
- HASS币
- 0
|
发表于 2022-7-1 23:28:09
来自手机
|
显示全部楼层
这是什么情况?Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/midea_ac_lan/midea/security.py:66 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 23:25:07 (2 occurrences) Last logged: 23:25:13 [281473334270464] object of type 'NoneType' has no len() Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1704, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 964, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 588, in async_service_temperature_set await entity.async_set_temperature(**kwargs) File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 446, in async_set_temperature await self.hass.async_add_executor_job( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/midea_ac_lan/climate.py", line 251, in set_temperature self._dm.set_target_temperature( File "/config/custom_components/midea_ac_lan/state_manager.py", line 353, in set_target_temperature self.set_status(cmd) File "/config/custom_components/midea_ac_lan/state_manager.py", line 324, in set_status self.send_message(msg) File "/config/custom_components/midea_ac_lan/state_manager.py", line 119, in send_message self.send_message_V3(data, msg_type=MSGTYPE_ENCRYPTED_REQUEST) File "/config/custom_components/midea_ac_lan/state_manager.py", line 128, in send_message_V3 data = self._security.encode_8370(data, msg_type) File "/config/custom_components/midea_ac_lan/midea/security.py", line 107, in encode_8370 data = self.aes_cbc_encrypt(data, self._tcp_key) + sign File "/config/custom_components/midea_ac_lan/midea/security.py", line 66, in aes_cbc_encrypt return AES.new(key, AES.MODE_CBC, iv=self.iv).encrypt(raw) File "/usr/local/lib/python3.9/site-packages/Crypto/Cipher/AES.py", line 232, in new return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/Crypto/Cipher/__init__.py", line 79, in _create_cipher return modes[mode](factory, **kwargs) File "/usr/local/lib/python3.9/site-packages/Crypto/Cipher/_mode_cbc.py", line 274, in _create_cbc_cipher cipher_state = factory._create_base_cipher(kwargs) File "/usr/local/lib/python3.9/site-packages/Crypto/Cipher/AES.py", line 92, in _create_base_cipher if len(key) not in key_size: TypeError: object of type 'NoneType' has no len() |
|