Merge pull request #390 from dermotduffy/cardmod
Create a means of re-rendering the card based on external state
This commit is contained in:
+1
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user