mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Use single_config_entry in jellyfin manifest (#113202)
This commit is contained in:
parent
02d4bf007d
commit
29f07260f9
@ -51,9 +51,6 @@ class JellyfinConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
self, user_input: dict[str, Any] | None = None
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a user defined configuration."""
|
"""Handle a user defined configuration."""
|
||||||
if self._async_current_entries():
|
|
||||||
return self.async_abort(reason="single_instance_allowed")
|
|
||||||
|
|
||||||
errors: dict[str, str] = {}
|
errors: dict[str, str] = {}
|
||||||
|
|
||||||
if user_input is not None:
|
if user_input is not None:
|
||||||
|
@ -7,5 +7,6 @@
|
|||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["jellyfin_apiclient_python"],
|
"loggers": ["jellyfin_apiclient_python"],
|
||||||
"requirements": ["jellyfin-apiclient-python==1.9.2"]
|
"requirements": ["jellyfin-apiclient-python==1.9.2"],
|
||||||
|
"single_config_entry": true
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
},
|
},
|
||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]",
|
"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%]"
|
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2904,7 +2904,8 @@
|
|||||||
"name": "Jellyfin",
|
"name": "Jellyfin",
|
||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"iot_class": "local_polling"
|
"iot_class": "local_polling",
|
||||||
|
"single_config_entry": true
|
||||||
},
|
},
|
||||||
"jewish_calendar": {
|
"jewish_calendar": {
|
||||||
"name": "Jewish Calendar",
|
"name": "Jewish Calendar",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user