Remove get layout options warning in console (#22611)

This commit is contained in:
Paul Bottein 2024-10-31 14:48:21 +01:00 committed by GitHub
parent f4df5852fb
commit c4bc1f627f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
);