|
本帖最后由 justion 于 2022-12-16 21:59 编辑
昨天晚上更新了最新的系统以后就收不到通知邮件了,到开发者工具里的服务里也没有邮件通知的这个服务项了,日志里错误代码是这样的,我看不懂,不知道是哪里出了问题。
Logger: homeassistant.components.notify
Source: components/smtp/notify.py:140
Integration: 通知 (documentation, issues)
First occurred: 00:45:21 (3 occurrences)
Last logged: 00:45:21
Error setting up platform smtp
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 92, in async_setup_platform
notify_service = await hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 92, in get_service
if mail_service.connection_is_valid():
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 154, in connection_is_valid
server = self.connect()
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 140, in connect
mail = smtplib.SMTP(self._server, self._port, timeout=self._timeout)
File "/usr/local/lib/python3.10/smtplib.py", line 255, in __init__
(code, msg) = self.connect(host, port)
File "/usr/local/lib/python3.10/smtplib.py", line 343, in connect
(code, msg) = self.getreply()
File "/usr/local/lib/python3.10/smtplib.py", line 405, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
|
|