Use single_config_entry in jellyfin manifest (#113202)

This commit is contained in:
Chris Talkington 2024-03-15 13:56:13 -05:00 committed by GitHub
parent 02d4bf007d
commit 29f07260f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 6 deletions

View File

@ -51,9 +51,6 @@ class JellyfinConfigFlow(ConfigFlow, domain=DOMAIN):
self, user_input: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Handle a user defined configuration."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
errors: dict[str, str] = {}
if user_input is not None:

View File

@ -7,5 +7,6 @@
"integration_type": "service",
"iot_class": "local_polling",
"loggers": ["jellyfin_apiclient_python"],
"requirements": ["jellyfin-apiclient-python==1.9.2"]
"requirements": ["jellyfin-apiclient-python==1.9.2"],
"single_config_entry": true
}

View File

@ -23,7 +23,6 @@
},
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]",
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]",
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]"
}
}

View File

@ -2904,7 +2904,8 @@
"name": "Jellyfin",
"integration_type": "service",
"config_flow": true,
"iot_class": "local_polling"
"iot_class": "local_polling",
"single_config_entry": true
},
"jewish_calendar": {
"name": "Jewish Calendar",