20231129.1 (#18811)

This commit is contained in:
Bram Kragten 2023-11-29 15:31:24 +01:00 committed by GitHub
commit ef735d65cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 13 deletions

View File

@ -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"

View File

@ -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) {

View File

@ -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 {

View File

@ -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) {

View File

@ -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")
);
}

View File

@ -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() {

View File

@ -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 {