From 7adb0f0ef5432e79c445f714e6783841acd3b9a4 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 18 Jul 2022 22:10:22 +0200 Subject: [PATCH] Custom component -> Custom integration (#75404) --- homeassistant/components/number/__init__.py | 4 ++-- homeassistant/components/sensor/recorder.py | 2 +- homeassistant/components/weather/__init__.py | 2 +- homeassistant/helpers/entity.py | 2 +- homeassistant/helpers/frame.py | 2 +- homeassistant/util/async_.py | 2 +- tests/components/sensor/test_init.py | 2 +- tests/components/sensor/test_recorder.py | 2 +- tests/helpers/test_aiohttp_client.py | 2 +- tests/helpers/test_entity.py | 2 +- tests/helpers/test_httpx_client.py | 2 +- tests/util/test_async.py | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/homeassistant/components/number/__init__.py b/homeassistant/components/number/__init__.py index 5ab1eaa7be4..4990fbfa7f8 100644 --- a/homeassistant/components/number/__init__.py +++ b/homeassistant/components/number/__init__.py @@ -152,7 +152,7 @@ class NumberEntityDescription(EntityDescription): else: module = inspect.getmodule(self) if module and module.__file__ and "custom_components" in module.__file__: - report_issue = "report it to the custom component author." + report_issue = "report it to the custom integration author." else: report_issue = ( "create a bug report at " @@ -222,7 +222,7 @@ class NumberEntity(Entity): ): module = inspect.getmodule(cls) if module and module.__file__ and "custom_components" in module.__file__: - report_issue = "report it to the custom component author." + report_issue = "report it to the custom integration author." else: report_issue = ( "create a bug report at " diff --git a/homeassistant/components/sensor/recorder.py b/homeassistant/components/sensor/recorder.py index 3fc5cbec7ee..ea7d129a9c3 100644 --- a/homeassistant/components/sensor/recorder.py +++ b/homeassistant/components/sensor/recorder.py @@ -275,7 +275,7 @@ def _suggest_report_issue(hass: HomeAssistant, entity_id: str) -> str: custom_component = entity_sources(hass).get(entity_id, {}).get("custom_component") report_issue = "" if custom_component: - report_issue = "report it to the custom component author." + report_issue = "report it to the custom integration author." else: report_issue = ( "create a bug report at " diff --git a/homeassistant/components/weather/__init__.py b/homeassistant/components/weather/__init__.py index 3e0233917d7..c55ae043622 100644 --- a/homeassistant/components/weather/__init__.py +++ b/homeassistant/components/weather/__init__.py @@ -299,7 +299,7 @@ class WeatherEntity(Entity): and module.__file__ and "custom_components" in module.__file__ ): - report_issue = "report it to the custom component author." + report_issue = "report it to the custom integration author." else: report_issue = ( "create a bug report at " diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index f00f7d85e76..cb71cfd9edf 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -936,7 +936,7 @@ class Entity(ABC): """Suggest to report an issue.""" report_issue = "" if "custom_components" in type(self).__module__: - report_issue = "report it to the custom component author." + report_issue = "report it to the custom integration author." else: report_issue = ( "create a bug report at " diff --git a/homeassistant/helpers/frame.py b/homeassistant/helpers/frame.py index b81f5f29432..ca5cf759d8e 100644 --- a/homeassistant/helpers/frame.py +++ b/homeassistant/helpers/frame.py @@ -96,7 +96,7 @@ def report_integration( index = found_frame.filename.index(path) if path == "custom_components/": - extra = " to the custom component author" + extra = " to the custom integration author" else: extra = "" diff --git a/homeassistant/util/async_.py b/homeassistant/util/async_.py index 8b96e85664d..e9c5a41062e 100644 --- a/homeassistant/util/async_.py +++ b/homeassistant/util/async_.py @@ -150,7 +150,7 @@ def check_loop( integration = found_frame.filename[start:end] if path == "custom_components/": - extra = " to the custom component author" + extra = " to the custom integration author" else: extra = "" diff --git a/tests/components/sensor/test_init.py b/tests/components/sensor/test_init.py index 0bae8235ff9..3a593b0e6cc 100644 --- a/tests/components/sensor/test_init.py +++ b/tests/components/sensor/test_init.py @@ -107,7 +107,7 @@ async def test_deprecated_last_reset( f"with state_class {state_class} has set last_reset. Setting last_reset for " "entities with state_class other than 'total' is not supported. Please update " "your configuration if state_class is manually configured, otherwise report it " - "to the custom component author." + "to the custom integration author." ) in caplog.text state = hass.states.get("sensor.test") diff --git a/tests/components/sensor/test_recorder.py b/tests/components/sensor/test_recorder.py index c62d1309c7a..4be59e4c82c 100644 --- a/tests/components/sensor/test_recorder.py +++ b/tests/components/sensor/test_recorder.py @@ -775,7 +775,7 @@ def test_compile_hourly_sum_statistics_nan_inf_state( ( "sensor.custom_sensor", "from integration test ", - "report it to the custom component author", + "report it to the custom integration author", ), ], ) diff --git a/tests/helpers/test_aiohttp_client.py b/tests/helpers/test_aiohttp_client.py index 1ffb4267167..7bac31e8e19 100644 --- a/tests/helpers/test_aiohttp_client.py +++ b/tests/helpers/test_aiohttp_client.py @@ -183,7 +183,7 @@ async def test_warning_close_session_custom(hass, caplog): await session.close() assert ( "Detected integration that closes the Home Assistant aiohttp session. " - "Please report issue to the custom component author for hue using this method at " + "Please report issue to the custom integration author for hue using this method at " "custom_components/hue/light.py, line 23: await session.close()" in caplog.text ) diff --git a/tests/helpers/test_entity.py b/tests/helpers/test_entity.py index b9067a3db1c..698d3cfe98a 100644 --- a/tests/helpers/test_entity.py +++ b/tests/helpers/test_entity.py @@ -715,7 +715,7 @@ async def test_warn_slow_write_state_custom_component(hass, caplog): assert ( "Updating state for comp_test.test_entity " "(.CustomComponentEntity'>) " - "took 10.000 seconds. Please report it to the custom component author." + "took 10.000 seconds. Please report it to the custom integration author." ) in caplog.text diff --git a/tests/helpers/test_httpx_client.py b/tests/helpers/test_httpx_client.py index cdb650f7686..068c0fe1470 100644 --- a/tests/helpers/test_httpx_client.py +++ b/tests/helpers/test_httpx_client.py @@ -153,6 +153,6 @@ async def test_warning_close_session_custom(hass, caplog): await httpx_session.aclose() assert ( "Detected integration that closes the Home Assistant httpx client. " - "Please report issue to the custom component author for hue using this method at " + "Please report issue to the custom integration author for hue using this method at " "custom_components/hue/light.py, line 23: await session.aclose()" in caplog.text ) diff --git a/tests/util/test_async.py b/tests/util/test_async.py index 9bae6f5ebea..10861767de1 100644 --- a/tests/util/test_async.py +++ b/tests/util/test_async.py @@ -168,7 +168,7 @@ async def test_check_loop_async_custom(caplog): hasync.check_loop(banned_function) assert ( "Detected blocking call to banned_function inside the event loop. This is " - "causing stability issues. Please report issue to the custom component author " + "causing stability issues. Please report issue to the custom integration author " "for hue doing blocking calls at custom_components/hue/light.py, line 23: " "self.light.is_on" in caplog.text )