- 积分
- 782
- 金钱
- 599
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 782
- 金钱
- 599
- HASS币
- 0
|
发表于 2018-11-11 08:37:38
|
显示全部楼层
本帖最后由 rexandlanny 于 2018-11-11 10:56 编辑
谢谢分享
刚刚试了一下 出现这个问题 不管是用qq发送 还是用126邮箱发送 都出现这个问题
Sun Nov 11 2018 10:42:27 GMT+0800 (中国标准时间) Error setting up platform smtpTraceback (most recent call last): File "/usr/lib/python3.5/smtplib.py", line 386, in getreply line = self.file.readline(_MAXLINE + 1) File "/usr/lib/python3.5/socket.py", line 576, in readinto return self._sock.recv_into(b)socket.timeout: timed outDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/notify/__init__.py", line 95, in async_setup_platform platform.get_service, hass, p_config, discovery_info) File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__ yield self # This tells Task to wait for completion. File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/notify/smtp.py", line 75, in get_service if mail_service.connection_is_valid(): File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/notify/smtp.py", line 120, in connection_is_valid server = self.connect() File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/notify/smtp.py", line 106, in connect self._server, self._port, timeout=self._timeout) File "/usr/lib/python3.5/smtplib.py", line 251, in __init__ (code, msg) = self.connect(host, port) File "/usr/lib/python3.5/smtplib.py", line 337, in connect (code, msg) = self.getreply() File "/usr/lib/python3.5/smtplib.py", line 390, in getreply + str(e))smtplib.SMTPServerDisconnected: Connection unexpectedly closed: timed out
|
|