Implements SMTP config flow for Home Assistant, handling user setup and options.
# Source: https://github.com/home-assistant/core | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Config flow for the SMTP integration."""
from collections.abc import Mapping
import logging
from typing import Any, override
from aiosmtplib import SMTP, SMTPAuthenticationError, SMTPException, SMTPTimeoutError
import probatio
from homeassistant import data_entry_flow
from homeassistant.config_entries import (
SOURCE_USER,
ConfigFlow,
ConfigFlowResult,
ConfigSubentryData,
ConfigSubentryFlow,
FlowType,
OptionsFlow,
SubentryFlowContext,
SubentryFlowResult,
)
from homeassistant.const import (
CONF_NAME,
CONF_PASSWORD,
CONF_PORT,
CON
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key