Skip to content

Commit

Permalink
Fix CI errors (#644)
Browse files Browse the repository at this point in the history
Co-authored-by: Arman Taherian <[email protected]>
  • Loading branch information
jesserockz and armantaherian authored Aug 4, 2024
1 parent 4dc1fd9 commit 6cbb3f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const fetchApiBase = async (
if (!options.headers) {
options.headers = {};
}
// @ts-ignore
options.headers["X-CSRFToken"] = csrfCookie;
}
const resp = await fetch(path, options);
Expand Down
2 changes: 1 addition & 1 deletion src/util/console-color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ColoredConsole {
}

addLine(line: string) {
const re = /(?:\033|\\033)(?:\[(.*?)[@-~]|\].*?(?:\007|\033\\))/g;
const re = /(?:\x1b|\\033)(?:\[(.*?)[@-~]|\].*?(?:\x07|\x07\\))/g;
let i = 0;

if (this.state.carriageReturn) {
Expand Down
7 changes: 5 additions & 2 deletions src/wizard/wizard-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,17 @@ export class ESPHomeWizardDialog extends LitElement {
<mwc-list class="platforms">
${Object.keys(supportedPlatforms).map((key) =>
supportedPlatforms[key].showInDeviceTypePicker
supportedPlatforms[key as SupportedPlatforms].showInDeviceTypePicker
? html`
<mwc-list-item
hasMeta
.platform=${key}
@click=${this._handlePickPlatformClick}
>
<span>${supportedPlatforms[key].label}</span>
<span
>${supportedPlatforms[key as SupportedPlatforms]
.label}</span
>
${metaChevronRight}
</mwc-list-item>
`
Expand Down

0 comments on commit 6cbb3f3

Please sign in to comment.