|
发表于 2019-11-26 19:57:39
|
显示全部楼层
升级到0.102.2出问题了。。图片发不出去。下面是日志:
2019-11-26 19:53:03 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139688991029200] [Errno 2] No such file or directory: '/config/local/tv.jpg'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 120, in async_notify_message
await notify_service.async_send_message(**kwargs)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wechatwork/notify.py", line 92, in send_message
files = {media_type: open(path, 'rb')}
FileNotFoundError: [Errno 2] No such file or directory: '/config/local/tv.jpg'
大佬有空搞一下么 |
|