mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix warning in test
This commit is contained in:
parent
8e776b4dc0
commit
00019b9ff0
@ -292,7 +292,7 @@ class TestHelpersEntityComponent(unittest.TestCase):
|
|||||||
assert platform2_setup.called
|
assert platform2_setup.called
|
||||||
|
|
||||||
@patch('homeassistant.helpers.entity_component.EntityComponent'
|
@patch('homeassistant.helpers.entity_component.EntityComponent'
|
||||||
'._async_setup_platform')
|
'._async_setup_platform', return_value=mock_coro()())
|
||||||
@patch('homeassistant.bootstrap.async_setup_component',
|
@patch('homeassistant.bootstrap.async_setup_component',
|
||||||
return_value=mock_coro(True)())
|
return_value=mock_coro(True)())
|
||||||
def test_setup_does_discovery(self, mock_setup_component, mock_setup):
|
def test_setup_does_discovery(self, mock_setup_component, mock_setup):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user