Accept group without entities in configuration. (#1768)
* Accept group without entities in configuration. People seem to use these as placeholders for future expansion of their home automation dreams, and we used to accept them. We still have to specify at least one of 'name', 'view' or 'icon' so that the group is parsed as a dictionary. * Also accept empty entities: key in a group. * Additional fix for empty entities value in a group config.
This commit is contained in:
1 parent
982f8f41ae
commit
446d367aeb
2 files changed
+3
-2
No files matched your search
@@ -226,6 +226,7 @@ class TestComponentsGroup(unittest.TestCase):
|
||||
'view': True,
|
||||
},
|
||||
'test_group': 'hello.world,sensor.happy',
|
||||
'empty_group': {'name': 'Empty Group', 'entities': None},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user