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)
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ async def test_only_valid_components(hass, mqtt_mock, caplog):
|
||||
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert 'Component {} is not supported'.format(
|
||||
assert 'Integration {} is not supported'.format(
|
||||
invalid_component
|
||||
) in caplog.text
|
||||
|
||||
|
||||
Reference in new issue
Block a user