Skip to content

Commit

Permalink
Fix circular progress size + fix bug in assist pipeline debug (#19268)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Jan 4, 2024
1 parent 0d8c0ac commit 4f05bd9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/auth/ha-auth-textfield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class HaAuthTextField extends HaTextField {
// TODO: live() directive needs casting for lit-analyzer
// https://github.com/runem/lit-analyzer/pull/91/files
// TODO: lit-analyzer labels min/max as (number|string) instead of string
return html` <input
return html`<input
aria-labelledby=${ifDefined(ariaLabelledbyOrUndef)}
aria-controls=${ifDefined(ariaControlsOrUndef)}
aria-describedby=${ifDefined(ariaDescribedbyOrUndef)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/media-player/ha-media-upload-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class MediaUploadButton extends LitElement {
${this._uploading > 0
? html`
<ha-circular-progress
size="tiny"
size="small"
indeterminate
area-label="Uploading"
slot="icon"
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/repairs/dialog-system-information.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class DialogSystemInformation extends LitElement {
value = html`
<ha-circular-progress
indeterminate
size="tiny"
size="small"
></ha-circular-progress>
`;
} else if (info.type === "failed") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class AssistPipelineRunDebug extends LitElement {
}

// Play audio when we're done.
if (updatedRun.stage === "done") {
if (updatedRun.stage === "done" && !updatedRun.error) {
const url = updatedRun.tts!.tts_output!.url;
const audio = new Audio(url);
audio.addEventListener("ended", () => {
Expand All @@ -261,7 +261,10 @@ export class AssistPipelineRunDebug extends LitElement {
}
});
audio.play();
} else if (updatedRun.stage === "error") {
} else if (
(updatedRun.stage === "done" && updatedRun.error) ||
updatedRun.stage === "error"
) {
this._finished = true;
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const renderProgress = (
return html`❌`;
}
return html`
<ha-circular-progress size="tiny" indeterminate></ha-circular-progress>
<ha-circular-progress size="small" indeterminate></ha-circular-progress>
`;
}

Expand Down

0 comments on commit 4f05bd9

Please sign in to comment.