mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +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
|
// wait for automation to appear in entity registry when creating a new automation
|
||||||
if (entityRegPromise) {
|
if (entityRegPromise) {
|
||||||
try {
|
try {
|
||||||
const automation = await promiseTimeout(2000, entityRegPromise);
|
const automation = await promiseTimeout(5000, entityRegPromise);
|
||||||
entityId = automation.entity_id;
|
entityId = automation.entity_id;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error && e.name === "TimeoutError") {
|
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
|
// wait for new script to appear in entity registry
|
||||||
if (entityRegPromise) {
|
if (entityRegPromise) {
|
||||||
try {
|
try {
|
||||||
const script = await promiseTimeout(2000, entityRegPromise);
|
const script = await promiseTimeout(5000, entityRegPromise);
|
||||||
entityId = script.entity_id;
|
entityId = script.entity_id;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
entityId = undefined;
|
entityId = undefined;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user