Filter out falsey platform configs

This commit is contained in:
Paulus Schoutsen 2016-09-24 00:03:44 -07:00
parent d3a012a536
commit ac4e54c6ff
3 changed files with 19 additions and 10 deletions

View file

@ -45,5 +45,4 @@ class TestHelpers(unittest.TestCase):
('hello', config['zone']),
(None, 1),
('hello 2', config['zone Hallo'][1]),
(None, None)
] == list(helpers.config_per_platform(config, 'zone'))