Skip to content

Commit

Permalink
Remove get layout options warning in console (#22611)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Oct 31, 2024
1 parent f4df585 commit c4bc1f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/panels/lovelace/cards/hui-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ export class HuiCard extends ReactiveElement {
return this._element.getGridOptions();
}
if (this._element.getLayoutOptions) {
// Disabled for now to avoid spamming the console, need to be re-enabled when hui-card performance are fixed
// eslint-disable-next-line no-console
console.warn(
`This card (${this.config?.type}) is using "getLayoutOptions" and it is deprecated, contact the developer to suggest to use "getGridOptions" instead`
);
// console.warn(
// `This card (${this.config?.type}) is using "getLayoutOptions" and it is deprecated, contact the developer to suggest to use "getGridOptions" instead`
// );
const options = migrateLayoutToGridOptions(
this._element.getLayoutOptions()
);
Expand Down

0 comments on commit c4bc1f6

Please sign in to comment.