diff --git a/CODEOWNERS b/CODEOWNERS index 8ae6aa367b5ca..3b250ceb9ab70 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -805,8 +805,8 @@ build.json @home-assistant/supervisor /tests/components/lektrico/ @lektrico /homeassistant/components/lg_netcast/ @Drafteed @splinter98 /tests/components/lg_netcast/ @Drafteed @splinter98 -/homeassistant/components/lgthinq/ @LG-ThinQ-Integration -/tests/components/lgthinq/ @LG-ThinQ-Integration +/homeassistant/components/lg_thinq/ @LG-ThinQ-Integration +/tests/components/lg_thinq/ @LG-ThinQ-Integration /homeassistant/components/lidarr/ @tkdrob /tests/components/lidarr/ @tkdrob /homeassistant/components/lifx/ @Djelibeybi diff --git a/homeassistant/brands/lg.json b/homeassistant/brands/lg.json index 350db80b5f3df..6b706685f1f28 100644 --- a/homeassistant/brands/lg.json +++ b/homeassistant/brands/lg.json @@ -1,5 +1,5 @@ { "domain": "lg", "name": "LG", - "integrations": ["lg_netcast", "lg_soundbar", "webostv"] + "integrations": ["lg_netcast", "lg_thinq", "lg_soundbar", "webostv"] } diff --git a/homeassistant/components/lgthinq/__init__.py b/homeassistant/components/lg_thinq/__init__.py similarity index 100% rename from homeassistant/components/lgthinq/__init__.py rename to homeassistant/components/lg_thinq/__init__.py diff --git a/homeassistant/components/lgthinq/config_flow.py b/homeassistant/components/lg_thinq/config_flow.py similarity index 100% rename from homeassistant/components/lgthinq/config_flow.py rename to homeassistant/components/lg_thinq/config_flow.py diff --git a/homeassistant/components/lgthinq/const.py b/homeassistant/components/lg_thinq/const.py similarity index 99% rename from homeassistant/components/lgthinq/const.py rename to homeassistant/components/lg_thinq/const.py index 9b9b162bb069a..811b7c50340b2 100644 --- a/homeassistant/components/lgthinq/const.py +++ b/homeassistant/components/lg_thinq/const.py @@ -37,7 +37,7 @@ ) # Common -DOMAIN = "lgthinq" +DOMAIN = "lg_thinq" COMPANY = "LGE" THINQ_DEFAULT_NAME: Final = "LG ThinQ" THINQ_PAT_URL: Final = "https://connect-pat.lgthinq.com" diff --git a/homeassistant/components/lgthinq/coordinator.py b/homeassistant/components/lg_thinq/coordinator.py similarity index 100% rename from homeassistant/components/lgthinq/coordinator.py rename to homeassistant/components/lg_thinq/coordinator.py diff --git a/homeassistant/components/lgthinq/entity.py b/homeassistant/components/lg_thinq/entity.py similarity index 100% rename from homeassistant/components/lgthinq/entity.py rename to homeassistant/components/lg_thinq/entity.py diff --git a/homeassistant/components/lgthinq/icons.json b/homeassistant/components/lg_thinq/icons.json similarity index 100% rename from homeassistant/components/lgthinq/icons.json rename to homeassistant/components/lg_thinq/icons.json diff --git a/homeassistant/components/lgthinq/manifest.json b/homeassistant/components/lg_thinq/manifest.json similarity index 92% rename from homeassistant/components/lgthinq/manifest.json rename to homeassistant/components/lg_thinq/manifest.json index 641c78844f92a..0fa447a511b8a 100644 --- a/homeassistant/components/lgthinq/manifest.json +++ b/homeassistant/components/lg_thinq/manifest.json @@ -1,5 +1,5 @@ { - "domain": "lgthinq", + "domain": "lg_thinq", "name": "LG ThinQ", "codeowners": ["@LG-ThinQ-Integration"], "config_flow": true, diff --git a/homeassistant/components/lgthinq/strings.json b/homeassistant/components/lg_thinq/strings.json similarity index 100% rename from homeassistant/components/lgthinq/strings.json rename to homeassistant/components/lg_thinq/strings.json diff --git a/homeassistant/components/lgthinq/switch.py b/homeassistant/components/lg_thinq/switch.py similarity index 100% rename from homeassistant/components/lgthinq/switch.py rename to homeassistant/components/lg_thinq/switch.py diff --git a/homeassistant/generated/config_flows.py b/homeassistant/generated/config_flows.py index d4342d80d41dc..fcabc463f0ac4 100644 --- a/homeassistant/generated/config_flows.py +++ b/homeassistant/generated/config_flows.py @@ -319,7 +319,7 @@ "lektrico", "lg_netcast", "lg_soundbar", - "lgthinq", + "lg_thinq", "lidarr", "lifx", "linear_garage_door", diff --git a/homeassistant/generated/integrations.json b/homeassistant/generated/integrations.json index 8091d48ca4d7b..ebfe7e056f2d8 100644 --- a/homeassistant/generated/integrations.json +++ b/homeassistant/generated/integrations.json @@ -3238,6 +3238,12 @@ "iot_class": "local_polling", "name": "LG Netcast" }, + "lg_thinq": { + "integration_type": "hub", + "config_flow": true, + "iot_class": "cloud_push", + "name": "LG ThinQ" + }, "lg_soundbar": { "integration_type": "hub", "config_flow": true, @@ -3252,12 +3258,6 @@ } } }, - "lgthinq": { - "name": "LG ThinQ", - "integration_type": "hub", - "config_flow": true, - "iot_class": "cloud_push" - }, "lidarr": { "name": "Lidarr", "integration_type": "service", diff --git a/requirements_all.txt b/requirements_all.txt index 980ba8d94e2d0..27cd2d5abc1db 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2786,7 +2786,7 @@ thermoworks-smoke==0.1.8 # homeassistant.components.thingspeak thingspeak==1.0.0 -# homeassistant.components.lgthinq +# homeassistant.components.lg_thinq thinqconnect==0.9.5 # homeassistant.components.tikteck diff --git a/requirements_test_all.txt b/requirements_test_all.txt index f766c8c13d371..08903ae1c6f67 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -2199,7 +2199,7 @@ thermobeacon-ble==0.7.0 # homeassistant.components.thermopro thermopro-ble==0.10.0 -# homeassistant.components.lgthinq +# homeassistant.components.lg_thinq thinqconnect==0.9.5 # homeassistant.components.tilt_ble diff --git a/tests/components/lgthinq/__init__.py b/tests/components/lg_thinq/__init__.py similarity index 100% rename from tests/components/lgthinq/__init__.py rename to tests/components/lg_thinq/__init__.py diff --git a/tests/components/lgthinq/conftest.py b/tests/components/lg_thinq/conftest.py similarity index 90% rename from tests/components/lgthinq/conftest.py rename to tests/components/lg_thinq/conftest.py index 321c770ee8d3b..cae2de61fa4f8 100644 --- a/tests/components/lgthinq/conftest.py +++ b/tests/components/lg_thinq/conftest.py @@ -6,7 +6,7 @@ import pytest from thinqconnect import ThinQAPIException -from homeassistant.components.lgthinq.const import CONF_CONNECT_CLIENT_ID, DOMAIN +from homeassistant.components.lg_thinq.const import CONF_CONNECT_CLIENT_ID, DOMAIN from homeassistant.const import CONF_ACCESS_TOKEN, CONF_COUNTRY from .const import MOCK_CONNECT_CLIENT_ID, MOCK_COUNTRY, MOCK_PAT, MOCK_UUID @@ -51,7 +51,7 @@ def mock_uuid() -> Generator[AsyncMock]: with ( patch("uuid.uuid4", autospec=True, return_value=MOCK_UUID) as mock_uuid, patch( - "homeassistant.components.lgthinq.config_flow.uuid.uuid4", + "homeassistant.components.lg_thinq.config_flow.uuid.uuid4", new=mock_uuid, ), ): @@ -64,7 +64,7 @@ def mock_thinq_api() -> Generator[AsyncMock]: with ( patch("thinqconnect.ThinQApi", autospec=True) as mock_api, patch( - "homeassistant.components.lgthinq.config_flow.ThinQApi", + "homeassistant.components.lg_thinq.config_flow.ThinQApi", new=mock_api, ), ): diff --git a/tests/components/lgthinq/const.py b/tests/components/lg_thinq/const.py similarity index 100% rename from tests/components/lgthinq/const.py rename to tests/components/lg_thinq/const.py diff --git a/tests/components/lgthinq/test_config_flow.py b/tests/components/lg_thinq/test_config_flow.py similarity index 96% rename from tests/components/lgthinq/test_config_flow.py rename to tests/components/lg_thinq/test_config_flow.py index 457549ccb7e71..db0e2d2945083 100644 --- a/tests/components/lgthinq/test_config_flow.py +++ b/tests/components/lg_thinq/test_config_flow.py @@ -2,7 +2,7 @@ from unittest.mock import AsyncMock -from homeassistant.components.lgthinq.const import CONF_CONNECT_CLIENT_ID, DOMAIN +from homeassistant.components.lg_thinq.const import CONF_CONNECT_CLIENT_ID, DOMAIN from homeassistant.config_entries import SOURCE_USER from homeassistant.const import CONF_ACCESS_TOKEN, CONF_COUNTRY from homeassistant.core import HomeAssistant