Pass updated cards and badges to view element (#7407)

This commit is contained in:
Bram Kragten 2020-10-20 23:51:15 +02:00 committed by GitHub
parent 8c8151be92
commit 37eb5af3d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,13 @@ export class HUIView extends UpdatingElement {
this._layoutElement!.lovelace = lovelace;
}
if (configChanged || hassChanged || editModeChanged) {
if (
configChanged ||
hassChanged ||
editModeChanged ||
changedProperties.has("_cards") ||
changedProperties.has("_badges")
) {
this._layoutElement!.cards = this._cards;
this._layoutElement!.badges = this._badges;
}