Skip to content

Commit

Permalink
Rename lg_thinq domain name (#124926)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Aug 30, 2024
1 parent 0a9e206 commit ac39bf9
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/brands/lg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"domain": "lg",
"name": "LG",
"integrations": ["lg_netcast", "lg_soundbar", "webostv"]
"integrations": ["lg_netcast", "lg_thinq", "lg_soundbar", "webostv"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"domain": "lgthinq",
"domain": "lg_thinq",
"name": "LG ThinQ",
"codeowners": ["@LG-ThinQ-Integration"],
"config_flow": true,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion homeassistant/generated/config_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
"lektrico",
"lg_netcast",
"lg_soundbar",
"lgthinq",
"lg_thinq",
"lidarr",
"lifx",
"linear_garage_door",
Expand Down
12 changes: 6 additions & 6 deletions homeassistant/generated/integrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -3252,12 +3258,6 @@
}
}
},
"lgthinq": {
"name": "LG ThinQ",
"integration_type": "hub",
"config_flow": true,
"iot_class": "cloud_push"
},
"lidarr": {
"name": "Lidarr",
"integration_type": "service",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
),
):
Expand All @@ -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,
),
):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac39bf9

Please sign in to comment.