Skip to content

Commit

Permalink
Don't use observe
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Jun 26, 2024
1 parent 1fa12fc commit 85b4b61
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/panels/lovelace/cards/hui-weather-forecast-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
},
});

protected firstUpdated(): void {
this._sizeController.observe(this.shadowRoot!.querySelector("ha-card")!);
}

private _needForecastSubscription() {
return (
this._config!.forecast_type && this._config!.forecast_type !== "legacy"
Expand Down Expand Up @@ -429,6 +425,11 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
return [
weatherSVGStyles,
css`
:host {
position: relative;
display: block;
height: 100%;
}
ha-card {
cursor: pointer;
outline: none;
Expand Down

0 comments on commit 85b4b61

Please sign in to comment.