Skip to content

Commit

Permalink
Rename to elevenlabs
Browse files Browse the repository at this point in the history
  • Loading branch information
sorgfresser committed May 24, 2024
1 parent 11ffb20 commit 30c294b
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .strict-typing
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ homeassistant.components.ecowitt.*
homeassistant.components.efergy.*
homeassistant.components.electrasmart.*
homeassistant.components.electric_kiwi.*
homeassistant.components.elevenlabstts.*
homeassistant.components.elevenlabs.*
homeassistant.components.elgato.*
homeassistant.components.elkm1.*
homeassistant.components.emulated_hue.*
Expand Down
4 changes: 2 additions & 2 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ build.json @home-assistant/supervisor
/tests/components/electrasmart/ @jafar-atili
/homeassistant/components/electric_kiwi/ @mikey0000
/tests/components/electric_kiwi/ @mikey0000
/homeassistant/components/elevenlabstts/ @sorgfresser
/tests/components/elevenlabstts/ @sorgfresser
/homeassistant/components/elevenlabs/ @sorgfresser
/tests/components/elevenlabs/ @sorgfresser
/homeassistant/components/elgato/ @frenck
/tests/components/elgato/ @frenck
/homeassistant/components/elkm1/ @gwww @bdraco
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

CONF_VOICE = "voice"
CONF_MODEL = "model"
DOMAIN = "elevenlabstts"
DOMAIN = "elevenlabs"

DEFAULT_LANG = "en"
# Taken from https://help.elevenlabs.io/hc/en-us/articles/13313366263441-What-languages-do-you-support
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"domain": "elevenlabstts",
"domain": "elevenlabs",
"name": "ElevenLabs",
"codeowners": ["@sorgfresser"],
"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 @@ -142,7 +142,7 @@
"efergy",
"electrasmart",
"electric_kiwi",
"elevenlabstts",
"elevenlabs",
"elgato",
"elkm1",
"elmax",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/generated/integrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@
"config_flow": true,
"iot_class": "cloud_polling"
},
"elevenlabstts": {
"elevenlabs": {
"name": "ElevenLabs",
"integration_type": "service",
"config_flow": true,
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true

[mypy-homeassistant.components.elevenlabstts.*]
[mypy-homeassistant.components.elevenlabs.*]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ ecoaliface==0.4.0
# homeassistant.components.electric_kiwi
electrickiwi-api==0.8.5

# homeassistant.components.elevenlabstts
# homeassistant.components.elevenlabs
elevenlabs==1.1.2

# homeassistant.components.elgato
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ easyenergy==2.1.1
# homeassistant.components.electric_kiwi
electrickiwi-api==0.8.5

# homeassistant.components.elevenlabstts
# homeassistant.components.elevenlabs
elevenlabs==1.1.2

# homeassistant.components.elgato
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.elevenlabstts.async_setup_entry", return_value=True
"homeassistant.components.elevenlabs.async_setup_entry", return_value=True
) as mock_setup_entry:
yield mock_setup_entry

Expand Down Expand Up @@ -46,7 +46,7 @@ def mock_async_client() -> Generator[AsyncMock, None, None]:
]

with patch(
"homeassistant.components.elevenlabstts.config_flow.AsyncElevenLabs",
"homeassistant.components.elevenlabs.config_flow.AsyncElevenLabs",
return_value=client_mock,
) as mock_async_client:
yield mock_async_client
Expand All @@ -56,7 +56,7 @@ def mock_async_client() -> Generator[AsyncMock, None, None]:
def mock_async_client_fail() -> Generator[AsyncMock, None, None]:
"""Override async ElevenLabs client."""
with patch(
"homeassistant.components.elevenlabstts.config_flow.AsyncElevenLabs",
"homeassistant.components.elevenlabs.config_flow.AsyncElevenLabs",
return_value=AsyncMock(),
) as mock_async_client:
mock_async_client.side_effect = ApiError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unittest.mock import AsyncMock

from homeassistant import config_entries
from homeassistant.components.elevenlabstts.const import CONF_MODEL, CONF_VOICE, DOMAIN
from homeassistant.components.elevenlabs.const import CONF_MODEL, CONF_VOICE, DOMAIN
from homeassistant.const import CONF_API_KEY
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResultType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import pytest

from homeassistant.components import tts
from homeassistant.components.elevenlabstts.const import CONF_MODEL, CONF_VOICE, DOMAIN
from homeassistant.components.elevenlabs.const import CONF_MODEL, CONF_VOICE, DOMAIN
from homeassistant.components.media_player import (
ATTR_MEDIA_CONTENT_ID,
DOMAIN as DOMAIN_MP,
Expand Down Expand Up @@ -83,7 +83,7 @@ async def mock_config_entry_setup(
}
mock_eleven = AsyncMock()
with patch(
"homeassistant.components.elevenlabstts.tts.AsyncElevenLabs",
"homeassistant.components.elevenlabs.tts.AsyncElevenLabs",
return_value=mock_eleven,
):
config_entry = MockConfigEntry(domain=DOMAIN, data=default_config | config)
Expand Down

0 comments on commit 30c294b

Please sign in to comment.