Rename lg_thinq domain name (#124926)

This commit is contained in:
Joost Lekkerkerker 2024-08-30 22:34:34 +02:00 committed by GitHub
parent 0a9e20615e
commit ac39bf991f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 18 additions and 18 deletions

View File

@ -805,8 +805,8 @@ build.json @home-assistant/supervisor
/tests/components/lektrico/ @lektrico /tests/components/lektrico/ @lektrico
/homeassistant/components/lg_netcast/ @Drafteed @splinter98 /homeassistant/components/lg_netcast/ @Drafteed @splinter98
/tests/components/lg_netcast/ @Drafteed @splinter98 /tests/components/lg_netcast/ @Drafteed @splinter98
/homeassistant/components/lgthinq/ @LG-ThinQ-Integration /homeassistant/components/lg_thinq/ @LG-ThinQ-Integration
/tests/components/lgthinq/ @LG-ThinQ-Integration /tests/components/lg_thinq/ @LG-ThinQ-Integration
/homeassistant/components/lidarr/ @tkdrob /homeassistant/components/lidarr/ @tkdrob
/tests/components/lidarr/ @tkdrob /tests/components/lidarr/ @tkdrob
/homeassistant/components/lifx/ @Djelibeybi /homeassistant/components/lifx/ @Djelibeybi

View File

@ -1,5 +1,5 @@
{ {
"domain": "lg", "domain": "lg",
"name": "LG", "name": "LG",
"integrations": ["lg_netcast", "lg_soundbar", "webostv"] "integrations": ["lg_netcast", "lg_thinq", "lg_soundbar", "webostv"]
} }

View File

@ -37,7 +37,7 @@ from thinqconnect import (
) )
# Common # Common
DOMAIN = "lgthinq" DOMAIN = "lg_thinq"
COMPANY = "LGE" COMPANY = "LGE"
THINQ_DEFAULT_NAME: Final = "LG ThinQ" THINQ_DEFAULT_NAME: Final = "LG ThinQ"
THINQ_PAT_URL: Final = "https://connect-pat.lgthinq.com" THINQ_PAT_URL: Final = "https://connect-pat.lgthinq.com"

View File

@ -1,5 +1,5 @@
{ {
"domain": "lgthinq", "domain": "lg_thinq",
"name": "LG ThinQ", "name": "LG ThinQ",
"codeowners": ["@LG-ThinQ-Integration"], "codeowners": ["@LG-ThinQ-Integration"],
"config_flow": true, "config_flow": true,

View File

@ -319,7 +319,7 @@ FLOWS = {
"lektrico", "lektrico",
"lg_netcast", "lg_netcast",
"lg_soundbar", "lg_soundbar",
"lgthinq", "lg_thinq",
"lidarr", "lidarr",
"lifx", "lifx",
"linear_garage_door", "linear_garage_door",

View File

@ -3238,6 +3238,12 @@
"iot_class": "local_polling", "iot_class": "local_polling",
"name": "LG Netcast" "name": "LG Netcast"
}, },
"lg_thinq": {
"integration_type": "hub",
"config_flow": true,
"iot_class": "cloud_push",
"name": "LG ThinQ"
},
"lg_soundbar": { "lg_soundbar": {
"integration_type": "hub", "integration_type": "hub",
"config_flow": true, "config_flow": true,
@ -3252,12 +3258,6 @@
} }
} }
}, },
"lgthinq": {
"name": "LG ThinQ",
"integration_type": "hub",
"config_flow": true,
"iot_class": "cloud_push"
},
"lidarr": { "lidarr": {
"name": "Lidarr", "name": "Lidarr",
"integration_type": "service", "integration_type": "service",

View File

@ -2786,7 +2786,7 @@ thermoworks-smoke==0.1.8
# homeassistant.components.thingspeak # homeassistant.components.thingspeak
thingspeak==1.0.0 thingspeak==1.0.0
# homeassistant.components.lgthinq # homeassistant.components.lg_thinq
thinqconnect==0.9.5 thinqconnect==0.9.5
# homeassistant.components.tikteck # homeassistant.components.tikteck

View File

@ -2199,7 +2199,7 @@ thermobeacon-ble==0.7.0
# homeassistant.components.thermopro # homeassistant.components.thermopro
thermopro-ble==0.10.0 thermopro-ble==0.10.0
# homeassistant.components.lgthinq # homeassistant.components.lg_thinq
thinqconnect==0.9.5 thinqconnect==0.9.5
# homeassistant.components.tilt_ble # homeassistant.components.tilt_ble

View File

@ -6,7 +6,7 @@ from unittest.mock import AsyncMock, MagicMock, patch
import pytest import pytest
from thinqconnect import ThinQAPIException 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 homeassistant.const import CONF_ACCESS_TOKEN, CONF_COUNTRY
from .const import MOCK_CONNECT_CLIENT_ID, MOCK_COUNTRY, MOCK_PAT, MOCK_UUID from .const import MOCK_CONNECT_CLIENT_ID, MOCK_COUNTRY, MOCK_PAT, MOCK_UUID
@ -51,7 +51,7 @@ def mock_uuid() -> Generator[AsyncMock]:
with ( with (
patch("uuid.uuid4", autospec=True, return_value=MOCK_UUID) as mock_uuid, patch("uuid.uuid4", autospec=True, return_value=MOCK_UUID) as mock_uuid,
patch( patch(
"homeassistant.components.lgthinq.config_flow.uuid.uuid4", "homeassistant.components.lg_thinq.config_flow.uuid.uuid4",
new=mock_uuid, new=mock_uuid,
), ),
): ):
@ -64,7 +64,7 @@ def mock_thinq_api() -> Generator[AsyncMock]:
with ( with (
patch("thinqconnect.ThinQApi", autospec=True) as mock_api, patch("thinqconnect.ThinQApi", autospec=True) as mock_api,
patch( patch(
"homeassistant.components.lgthinq.config_flow.ThinQApi", "homeassistant.components.lg_thinq.config_flow.ThinQApi",
new=mock_api, new=mock_api,
), ),
): ):

View File

@ -2,7 +2,7 @@
from unittest.mock import AsyncMock 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.config_entries import SOURCE_USER
from homeassistant.const import CONF_ACCESS_TOKEN, CONF_COUNTRY from homeassistant.const import CONF_ACCESS_TOKEN, CONF_COUNTRY
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant