mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Use single_config_entry
in KNX manifest (#112526)
This commit is contained in:
parent
13cd6eb00e
commit
7bcfa94b12
@ -756,8 +756,6 @@ class KNXConfigFlow(KNXCommonFlow, ConfigFlow, domain=DOMAIN):
|
|||||||
|
|
||||||
async def async_step_user(self, user_input: dict | None = None) -> ConfigFlowResult:
|
async def async_step_user(self, user_input: dict | None = None) -> ConfigFlowResult:
|
||||||
"""Handle a flow initialized by the user."""
|
"""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()
|
return await self.async_step_connection_type()
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,5 +14,6 @@
|
|||||||
"xknx==2.12.2",
|
"xknx==2.12.2",
|
||||||
"xknxproject==3.7.0",
|
"xknxproject==3.7.0",
|
||||||
"knx-frontend==2024.1.20.105944"
|
"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": {
|
"error": {
|
||||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||||
"invalid_backbone_key": "Invalid backbone key. 32 hexadecimal numbers expected.",
|
"invalid_backbone_key": "Invalid backbone key. 32 hexadecimal numbers expected.",
|
||||||
|
@ -3023,7 +3023,8 @@
|
|||||||
"name": "KNX",
|
"name": "KNX",
|
||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"iot_class": "local_push"
|
"iot_class": "local_push",
|
||||||
|
"single_config_entry": true
|
||||||
},
|
},
|
||||||
"kodi": {
|
"kodi": {
|
||||||
"name": "Kodi",
|
"name": "Kodi",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user