Use single_config_entry
in KNX manifest (#112526)
This commit is contained in:
parent
13cd6eb00e
commit
7bcfa94b12
4 changed files with 4 additions and 8 deletions
|
@ -756,8 +756,6 @@ class KNXConfigFlow(KNXCommonFlow, ConfigFlow, domain=DOMAIN):
|
|||
|
||||
async def async_step_user(self, user_input: dict | None = None) -> ConfigFlowResult:
|
||||
"""Handle a flow initialized by the user."""
|
||||
if self._async_current_entries():
|
||||
return self.async_abort(reason="single_instance_allowed")
|
||||
return await self.async_step_connection_type()
|
||||
|
||||
|
||||
|
|
|
@ -14,5 +14,6 @@
|
|||
"xknx==2.12.2",
|
||||
"xknxproject==3.7.0",
|
||||
"knx-frontend==2024.1.20.105944"
|
||||
]
|
||||
],
|
||||
"single_config_entry": true
|
||||
}
|
||||
|
|
|
@ -108,10 +108,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]",
|
||||
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]"
|
||||
},
|
||||
"error": {
|
||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||
"invalid_backbone_key": "Invalid backbone key. 32 hexadecimal numbers expected.",
|
||||
|
|
|
@ -3023,7 +3023,8 @@
|
|||
"name": "KNX",
|
||||
"integration_type": "hub",
|
||||
"config_flow": true,
|
||||
"iot_class": "local_push"
|
||||
"iot_class": "local_push",
|
||||
"single_config_entry": true
|
||||
},
|
||||
"kodi": {
|
||||
"name": "Kodi",
|
||||
|
|
Loading…
Add table
Reference in a new issue