mirror of
https://github.com/home-assistant/core
synced 2024-07-15 09:42:11 +02:00
Fix SSLCipherList typing error in IMAP coordinator (#105362)
This commit is contained in:
parent
e1df1f9ffe
commit
617b045727
@ -62,7 +62,7 @@ async def connect_to_server(data: Mapping[str, Any]) -> IMAP4_SSL:
|
||||
"""Connect to imap server and return client."""
|
||||
ssl_cipher_list: str = data.get(CONF_SSL_CIPHER_LIST, SSLCipherList.PYTHON_DEFAULT)
|
||||
if data.get(CONF_VERIFY_SSL, True):
|
||||
ssl_context = client_context(ssl_cipher_list=ssl_cipher_list)
|
||||
ssl_context = client_context(ssl_cipher_list=SSLCipherList(ssl_cipher_list))
|
||||
else:
|
||||
ssl_context = create_no_verify_ssl_context()
|
||||
client = IMAP4_SSL(data[CONF_SERVER], data[CONF_PORT], ssl_context=ssl_context)
|
||||
|
Loading…
Reference in New Issue
Block a user