Remove misleading "for" from custom integration warning message (#45811)

This commit is contained in:
Ville Skyttä 2021-02-01 09:36:06 +02:00 committed by GitHub
parent 03928dbe55
commit 2ffdc4694a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ DATA_CUSTOM_COMPONENTS = "custom_components"
PACKAGE_CUSTOM_COMPONENTS = "custom_components"
PACKAGE_BUILTIN = "homeassistant.components"
CUSTOM_WARNING = (
"You are using a custom integration for %s which has not "
"You are using a custom integration %s which has not "
"been tested by Home Assistant. This component might "
"cause stability problems, be sure to disable it if you "
"experience issues with Home Assistant."

View File

@ -131,10 +131,10 @@ async def test_custom_component_name(hass):
async def test_log_warning_custom_component(hass, caplog):
"""Test that we log a warning when loading a custom component."""
hass.components.test_standalone
assert "You are using a custom integration for test_standalone" in caplog.text
assert "You are using a custom integration test_standalone" in caplog.text
await loader.async_get_integration(hass, "test")
assert "You are using a custom integration for test " in caplog.text
assert "You are using a custom integration test " in caplog.text
async def test_get_integration(hass):