Merge pull request #390 from dermotduffy/cardmod

Create a means of re-rendering the card based on external state
This commit is contained in:
Dermot Duffy
2022-02-19 11:11:24 -08:00
committed by GitHub
5 changed files with 24 additions and 22 deletions
+1 -4
View File
@@ -223,10 +223,7 @@ export function shouldUpdateBasedOnHass(
oldHass: HomeAssistant | undefined | null,
entities: string[] | null,
): boolean {
if (!newHass || !entities) {
return false;
}
if (!entities.length) {
if (!newHass || !entities || !entities.length) {
return false;
}