mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Remove get layout options warning in console (#22611)
This commit is contained in:
parent
f4df5852fb
commit
c4bc1f627f
@ -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()
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user