From c4bc1f627f0c54a9d850fd963bdbae7319cd1e75 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 31 Oct 2024 14:48:21 +0100 Subject: [PATCH] Remove get layout options warning in console (#22611) --- src/panels/lovelace/cards/hui-card.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/panels/lovelace/cards/hui-card.ts b/src/panels/lovelace/cards/hui-card.ts index 855c4d3040..8692e34dd1 100644 --- a/src/panels/lovelace/cards/hui-card.ts +++ b/src/panels/lovelace/cards/hui-card.ts @@ -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() );