Batch of Component(s) -> Integration(s) (#24972)
This commit is contained in:
1 parent
e75c9efb3f
commit
31f569ada9
27 files changed
+34
-34
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user