Just upgraded to 109.3 and noticing the following:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 77, in async_setup_platform
platform.get_service, hass, p_config, discovery_info
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 83, in get_service
if mail_service.connection_is_valid():
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 137, in connection_is_valid
server = self.connect()
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 123, in connect
mail = smtplib.SMTP(self._server, self._port, timeout=self._timeout)
File "/usr/local/lib/python3.7/smtplib.py", line 251, in __init__
(code, msg) = self.connect(host, port)
File "/usr/local/lib/python3.7/smtplib.py", line 336, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/local/lib/python3.7/smtplib.py", line 307, in _get_socket
self.source_address)
File "/usr/local/lib/python3.7/socket.py", line 728, in create_connection
raise err
File "/usr/local/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network unreachable
Was working fine prior to this. This is my config.
- name: send_mail
platform: smtp
server: smtp.gmail.com
port: 587
timeout: 15
sender: !secret SMTP_sender
encryption: starttls
username: !secret SMTP_username
password: !secret SMTP_password
recipient:
- !secret SMTP_recipient_1
sender_name: My Home Assistant
lookup smtp.gmail.com
Server: 172.30.32.3
Address: 172.30.32.3#53
Non-authoritative answer:
Name: smtp.gmail.com
Address: 172.217.222.108
Name: smtp.gmail.com
Address: 2607:f8b0:400d:c04::6d
Must be something on startup.