Handle circular setup dependency
This commit is contained in:
parent
4c538c718b
commit
1bfea626ff
3 changed files with 63 additions and 40 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue