mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Batch of Component(s) -> Integration(s) (#24972)
This commit is contained in:
committed by
Paulus Schoutsen
parent
e75c9efb3f
commit
31f569ada9
@@ -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