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 {
|
||||
script.push(this._serviceData!);
|
||||
}
|
||||
button.progress = true;
|
||||
try {
|
||||
this._response = (await callExecuteScript(this.hass, script)).response;
|
||||
} catch (err: any) {
|
||||
@@ -505,6 +506,8 @@ class HaPanelDevAction extends LitElement {
|
||||
service: this._serviceData!.action!,
|
||||
}) + ` ${err.message}`;
|
||||
return;
|
||||
} finally {
|
||||
button.progress = false;
|
||||
}
|
||||
button.actionSuccess();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user