『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 776|回复: 0

[技术探讨] smtp设置错误

[复制链接]

11

主题

57

帖子

1162

积分

金牌会员

Rank: 6Rank: 6

积分
1162
金钱
1105
HASS币
0
发表于 2022-12-14 15:19:47 | 显示全部楼层 |阅读模式
求教,如何修复,提示Error setting up platform smtp,完整日志:
Logger: homeassistant.components.notify
Source: components/smtp/notify.py:140
Integration: 通知 (documentation, issues)
First occurred: 15:06:45 (1 occurrences)
Last logged: 15:06:45

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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 13:46 , Processed in 0.223056 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表