Handle circular setup dependency

This commit is contained in:
Paulus Schoutsen 2016-02-19 23:20:14 -08:00
parent 4c538c718b
commit 1bfea626ff
3 changed files with 63 additions and 40 deletions

View file

@ -146,7 +146,7 @@ class MockModule(object):
self.DEPENDENCIES = dependencies
# Setup a mock setup if none given.
if setup is None:
self.setup = lambda hass, config: False
self.setup = lambda hass, config: True
else:
self.setup = setup