Skip to content

Commit

Permalink
Use single_config_entry in KNX manifest (home-assistant#112526)
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio authored Mar 15, 2024
1 parent 13cd6eb commit 7bcfa94
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions homeassistant/components/knx/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,6 @@ def finish_flow(self) -> ConfigFlowResult:

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()


Expand Down
3 changes: 2 additions & 1 deletion homeassistant/components/knx/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"xknx==2.12.2",
"xknxproject==3.7.0",
"knx-frontend==2024.1.20.105944"
]
],
"single_config_entry": true
}
4 changes: 0 additions & 4 deletions homeassistant/components/knx/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
3 changes: 2 additions & 1 deletion homeassistant/generated/integrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7bcfa94

Please sign in to comment.