mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
Fix lit warnings (#9204)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
@@ -80,7 +80,8 @@ export class HaEntityToggle extends LitElement {
|
||||
this.addEventListener("click", (ev) => ev.stopPropagation());
|
||||
}
|
||||
|
||||
protected updated(changedProps: PropertyValues): void {
|
||||
public willUpdate(changedProps: PropertyValues): void {
|
||||
super.willUpdate(changedProps);
|
||||
if (changedProps.has("stateObj")) {
|
||||
this._isOn = isOn(this.stateObj);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,8 @@ export class StateBadge extends LitElement {
|
||||
`;
|
||||
}
|
||||
|
||||
protected updated(changedProps: PropertyValues) {
|
||||
public willUpdate(changedProps: PropertyValues) {
|
||||
super.willUpdate(changedProps);
|
||||
if (
|
||||
!changedProps.has("stateObj") &&
|
||||
!changedProps.has("overrideImage") &&
|
||||
|
||||
Reference in New Issue
Block a user