diff --git a/apps/nspanel-lovelace-ui/luibackend/config.py b/apps/nspanel-lovelace-ui/luibackend/config.py index 326e851d..12db0acf 100644 --- a/apps/nspanel-lovelace-ui/luibackend/config.py +++ b/apps/nspanel-lovelace-ui/luibackend/config.py @@ -65,7 +65,7 @@ class Card(object): entitys = [] if self.entity is not None: entitys.append(self.entity) - else: + if self.entities: for e in self.entities: entitys.append(e) return entitys