From 2ffdc4694aef1482e9bbe814b0af567d5af3af8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 1 Feb 2021 09:36:06 +0200 Subject: [PATCH] Remove misleading "for" from custom integration warning message (#45811) --- homeassistant/loader.py | 2 +- tests/test_loader.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/loader.py b/homeassistant/loader.py index 215f552a908..bedc04928af 100644 --- a/homeassistant/loader.py +++ b/homeassistant/loader.py @@ -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." diff --git a/tests/test_loader.py b/tests/test_loader.py index c1c27f56cb7..22f61c0a397 100644 --- a/tests/test_loader.py +++ b/tests/test_loader.py @@ -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):