diff --git a/custom_components/jellyfin/config_flow.py b/custom_components/jellyfin/config_flow.py index 0516ff9..d6f9b20 100644 --- a/custom_components/jellyfin/config_flow.py +++ b/custom_components/jellyfin/config_flow.py @@ -7,7 +7,7 @@ import voluptuous as vol from homeassistant import config_entries, exceptions from homeassistant.core import callback -from homeassistant.const import ( # pylint: disable=import-error +from homeassistant.const import ( # pylint: disable=import-error CONF_URL, CONF_VERIFY_SSL, CONF_USERNAME, @@ -28,24 +28,27 @@ RESULT_CONN_ERROR = "cannot_connect" RESULT_LOG_MESSAGE = {RESULT_CONN_ERROR: "Connection error"} + class JellyfinFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): """Config flow for Jellyfin component.""" + VERSION = 1 CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH @staticmethod @callback def async_get_options_flow(config_entry): - """Jellyfin options callback.""" + """Return the options flow handler.""" return JellyfinOptionsFlowHandler(config_entry) def __init__(self): - """Init JellyfinFlowHandler.""" + """Initialize the config flow.""" self._errors = {} self._url = None self._ssl = DEFAULT_SSL self._verify_ssl = DEFAULT_VERIFY_SSL + self._is_import = False async def async_step_import(self, user_input=None): """Handle configuration by yaml file."""