mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Show action being called in action dev tools (#26923)
This commit is contained in:
@@ -476,6 +476,7 @@ class HaPanelDevAction extends LitElement {
|
|||||||
} else {
|
} else {
|
||||||
script.push(this._serviceData!);
|
script.push(this._serviceData!);
|
||||||
}
|
}
|
||||||
|
button.progress = true;
|
||||||
try {
|
try {
|
||||||
this._response = (await callExecuteScript(this.hass, script)).response;
|
this._response = (await callExecuteScript(this.hass, script)).response;
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
@@ -505,6 +506,8 @@ class HaPanelDevAction extends LitElement {
|
|||||||
service: this._serviceData!.action!,
|
service: this._serviceData!.action!,
|
||||||
}) + ` ${err.message}`;
|
}) + ` ${err.message}`;
|
||||||
return;
|
return;
|
||||||
|
} finally {
|
||||||
|
button.progress = false;
|
||||||
}
|
}
|
||||||
button.actionSuccess();
|
button.actionSuccess();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user