Skip to content

Commit

Permalink
Make timeout for save automation/script longer (#23665)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Jan 10, 2025
1 parent 166633c commit 4b03caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/panels/config/automation/ha-automation-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ export class HaAutomationEditor extends PreventUnsavedMixin(
// wait for automation to appear in entity registry when creating a new automation
if (entityRegPromise) {
try {
const automation = await promiseTimeout(2000, entityRegPromise);
const automation = await promiseTimeout(5000, entityRegPromise);
entityId = automation.entity_id;
} catch (e) {
if (e instanceof Error && e.name === "TimeoutError") {
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/script/ha-script-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ export class HaScriptEditor extends SubscribeMixin(
// wait for new script to appear in entity registry
if (entityRegPromise) {
try {
const script = await promiseTimeout(2000, entityRegPromise);
const script = await promiseTimeout(5000, entityRegPromise);
entityId = script.entity_id;
} catch (e) {
entityId = undefined;
Expand Down

0 comments on commit 4b03caa

Please sign in to comment.