mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Make timeout for save automation/script longer (#23665)
This commit is contained in:
parent
166633cfa8
commit
4b03caa01a
@ -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") {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user