Skip to content

Commit

Permalink
20231129.1 (#18811)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Nov 29, 2023
2 parents 2803e6a + bf24740 commit ef735d6
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "home-assistant-frontend"
version = "20231129.0"
version = "20231129.1"
license = {text = "Apache-2.0"}
description = "The Home Assistant frontend"
readme = "README.md"
Expand Down
9 changes: 5 additions & 4 deletions src/panels/lovelace/cards/hui-history-graph-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
}

protected shouldUpdate(changedProps: PropertyValues): boolean {
if (changedProps.has("_stateHistory")) {
return true;
}
return hasConfigOrEntitiesChanged(this, changedProps);
return (
hasConfigOrEntitiesChanged(this, changedProps) ||
changedProps.size > 1 ||
!changedProps.has("hass")
);
}

protected updated(changedProps: PropertyValues) {
Expand Down
6 changes: 5 additions & 1 deletion src/panels/lovelace/cards/hui-media-control-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,11 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
}

protected shouldUpdate(changedProps: PropertyValues): boolean {
return hasConfigOrEntityChanged(this, changedProps);
return (
hasConfigOrEntityChanged(this, changedProps) ||
changedProps.size > 1 ||
!changedProps.has("hass")
);
}

protected firstUpdated(): void {
Expand Down
9 changes: 5 additions & 4 deletions src/panels/lovelace/cards/hui-statistics-graph-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ export class HuiStatisticsGraphCard extends LitElement implements LovelaceCard {
}

protected shouldUpdate(changedProps: PropertyValues): boolean {
if (changedProps.has("_statistics")) {
return true;
}
return hasConfigOrEntitiesChanged(this, changedProps);
return (
hasConfigOrEntitiesChanged(this, changedProps) ||
changedProps.size > 1 ||
!changedProps.has("hass")
);
}

public willUpdate(changedProps: PropertyValues) {
Expand Down
3 changes: 2 additions & 1 deletion src/panels/lovelace/cards/hui-weather-forecast-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
protected shouldUpdate(changedProps: PropertyValues): boolean {
return (
hasConfigOrEntityChanged(this, changedProps) ||
changedProps.has("forecastEvent")
changedProps.size > 1 ||
!changedProps.has("hass")
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ class HuiMediaPlayerEntityRow extends LitElement implements LovelaceRow {
}

protected shouldUpdate(changedProps: PropertyValues): boolean {
return hasConfigOrEntityChanged(this, changedProps);
return (
hasConfigOrEntityChanged(this, changedProps) ||
changedProps.size > 1 ||
!changedProps.has("hass")
);
}

protected render() {
Expand Down
6 changes: 5 additions & 1 deletion src/panels/lovelace/entity-rows/hui-weather-entity-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ class HuiWeatherEntityRow extends LitElement implements LovelaceRow {
}

protected shouldUpdate(changedProps: PropertyValues): boolean {
return hasConfigOrEntityChanged(this, changedProps);
return (
hasConfigOrEntityChanged(this, changedProps) ||
changedProps.size > 1 ||
!changedProps.has("hass")
);
}

protected updated(changedProps: PropertyValues): void {
Expand Down

0 comments on commit ef735d6

Please sign in to comment.