Make timeout for save automation/script longer (#23665)

This commit is contained in:
Bram Kragten 2025-01-10 01:39:19 +01:00 committed by GitHub
parent 166633cfa8
commit 4b03caa01a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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") {

View File

@ -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;