We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b226e5c commit e79e0f7Copy full SHA for e79e0f7
src/dialogs/config-flow/step-flow-create-entry.ts
@@ -235,9 +235,13 @@ class StepFlowCreateEntry extends LitElement {
235
236
fireEvent(this, "flow-update", { step: undefined });
237
if (this.step.result && this.navigateToResult) {
238
- navigate(
239
- `/config/integrations/integration/${this.step.result.domain}#config_entry=${this.step.result.entry_id}`
240
- );
+ if (this.devices.length === 1) {
+ navigate(`/config/devices/device/${this.devices[0].id}`);
+ } else {
241
+ navigate(
242
+ `/config/integrations/integration/${this.step.result.domain}#config_entry=${this.step.result.entry_id}`
243
+ );
244
+ }
245
}
246
247
0 commit comments