mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +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();
|
return this._element.getGridOptions();
|
||||||
}
|
}
|
||||||
if (this._element.getLayoutOptions) {
|
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
|
// eslint-disable-next-line no-console
|
||||||
console.warn(
|
// console.warn(
|
||||||
`This card (${this.config?.type}) is using "getLayoutOptions" and it is deprecated, contact the developer to suggest to use "getGridOptions" instead`
|
// `This card (${this.config?.type}) is using "getLayoutOptions" and it is deprecated, contact the developer to suggest to use "getGridOptions" instead`
|
||||||
);
|
// );
|
||||||
const options = migrateLayoutToGridOptions(
|
const options = migrateLayoutToGridOptions(
|
||||||
this._element.getLayoutOptions()
|
this._element.getLayoutOptions()
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user