- 积分
- 134
- 金钱
- 121
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 134
- 金钱
- 121
- HASS币
- 0
|
发表于 2021-6-20 00:36:13
|
显示全部楼层
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/local/lib/python3.9/site-packages/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/local/lib/python3.9/site-packages/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/local/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/local/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/local/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 760, in async_request_call
await coro
File "/usr/local/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/local/lib/python3.9/site-packages/homeassistant/components/climate/__init__.py", line 434, in async_set_hvac_mode
await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/binbinzhao/.homeassistant/custom_components/ewelink_climate/climate.py", line 222, in set_hvac_mode
self._states_manager.send_payload(self._device_id, {"power": "on", mode_key: mode})
File "/Users/binbinzhao/.homeassistant/custom_components/ewelink_climate/statemanager.py", line 89, in send_payload
self.send_json(payload)
File "/Users/binbinzhao/.homeassistant/custom_components/ewelink_climate/statemanager.py", line 63, in send_json
self._ws.send(json.dumps(jsondata))
File "/usr/local/lib/python3.9/site-packages/websocket/__init__.py", line 1012, in send
if self.sock.send(data, opcode) == 0:
AttributeError: 'NoneType' object has no attribute 'send'
是这个问题吗? |
|