mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Handle circular setup dependency
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user