Skip to content

Commit

Permalink
Fix a case where developer-tools/action can get stuck in an error loop (
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Oct 11, 2024
1 parent f9ff938 commit 6cfda78
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/panels/developer-tools/action/developer-tools-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ class HaPanelDevAction extends LitElement {

@query("#yaml-editor") private _yamlEditor?: HaYamlEditor;

protected willUpdate() {
if (
!this.hasUpdated &&
this._serviceData?.action &&
typeof this._serviceData.action !== "string"
) {
this._serviceData.action = "";
}
}

protected firstUpdated(params) {
super.firstUpdated(params);
this.hass.loadBackendTranslation("services");
Expand Down

0 comments on commit 6cfda78

Please sign in to comment.