Rename lg_thinq domain name (#124926)

pull/124950/head
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
/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

View File

@ -1,5 +1,5 @@
{
"domain": "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
DOMAIN = "lgthinq"
DOMAIN = "lg_thinq"
COMPANY = "LGE"
THINQ_DEFAULT_NAME: Final = "LG ThinQ"
THINQ_PAT_URL: Final = "https://connect-pat.lgthinq.com"

View File

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

View File

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

View File

@ -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",

View File

@ -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

View File

@ -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

View File

@ -6,7 +6,7 @@ from unittest.mock import AsyncMock, MagicMock, patch
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,
),
):

View File

@ -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