mirror of
https://github.com/sudoxnym/fin-assistant.git
synced 2026-04-14 11:37:38 +00:00
Merge pull request #3 from sudoxnym/fix-jellyfin-setup-error-and-deprecations.2025-09-15.05-52-49
Update Jellyfin integration for latest HA API
This commit is contained in:
commit
1428d0ad96
1 changed files with 6 additions and 3 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue