Batch of Component(s) -> Integration(s) (#24972)
This commit is contained in:
parent
e75c9efb3f
commit
31f569ada9
27 changed files with 34 additions and 34 deletions
|
@ -329,7 +329,7 @@ mock_mqtt_component = threadsafe_coroutine_factory(async_mock_mqtt_component)
|
|||
def mock_component(hass, component):
|
||||
"""Mock a component is setup."""
|
||||
if component in hass.config.components:
|
||||
AssertionError("Component {} is already setup".format(component))
|
||||
AssertionError("Integration {} is already setup".format(component))
|
||||
|
||||
hass.config.components.add(component)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue