mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
Allow circular dependency with discovery (#2616)
This commit is contained in:
@@ -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