Allow circular dependency with discovery (#2616)
This commit is contained in:
1 parent
9c76b30e24
commit
f1632496f0
10 files changed
+157
-60
No files matched your search
@@ -226,7 +226,8 @@ class TestHelpersEntityComponent(unittest.TestCase):
|
||||
|
||||
@patch('homeassistant.helpers.entity_component.EntityComponent'
|
||||
'._setup_platform')
|
||||
def test_setup_does_discovery(self, mock_setup):
|
||||
@patch('homeassistant.bootstrap.setup_component', return_value=True)
|
||||
def test_setup_does_discovery(self, mock_setup_component, mock_setup):
|
||||
"""Test setup for discovery."""
|
||||
component = EntityComponent(_LOGGER, DOMAIN, self.hass)
|
||||
|
||||
|
||||
Reference in new issue
Block a user