Skip to content

Commit

Permalink
Update elevenlabs to 1.9.0 (#133264)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Dec 15, 2024
1 parent 8953ac1 commit d1e466e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions homeassistant/components/elevenlabs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

from dataclasses import dataclass

from elevenlabs import Model
from elevenlabs.client import AsyncElevenLabs
from elevenlabs import AsyncElevenLabs, Model
from elevenlabs.core import ApiError

from homeassistant.config_entries import ConfigEntry
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/elevenlabs/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
from typing import Any

from elevenlabs.client import AsyncElevenLabs
from elevenlabs import AsyncElevenLabs
from elevenlabs.core import ApiError
import voluptuous as vol

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/elevenlabs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"integration_type": "service",
"iot_class": "cloud_polling",
"loggers": ["elevenlabs"],
"requirements": ["elevenlabs==1.6.1"]
"requirements": ["elevenlabs==1.9.0"]
}
2 changes: 1 addition & 1 deletion homeassistant/components/elevenlabs/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from types import MappingProxyType
from typing import Any

from elevenlabs.client import AsyncElevenLabs
from elevenlabs import AsyncElevenLabs
from elevenlabs.core import ApiError
from elevenlabs.types import Model, Voice as ElevenLabsVoice, VoiceSettings

Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ eheimdigital==1.0.3
electrickiwi-api==0.8.5

# homeassistant.components.elevenlabs
elevenlabs==1.6.1
elevenlabs==1.9.0

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

# homeassistant.components.elevenlabs
elevenlabs==1.6.1
elevenlabs==1.9.0

# homeassistant.components.elgato
elgato==5.1.2
Expand Down
2 changes: 1 addition & 1 deletion tests/components/elevenlabs/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def mock_async_client() -> Generator[AsyncMock]:
client_mock.voices.get_all.return_value = GetVoicesResponse(voices=MOCK_VOICES)
client_mock.models.get_all.return_value = MOCK_MODELS
with patch(
"elevenlabs.client.AsyncElevenLabs", return_value=client_mock
"elevenlabs.AsyncElevenLabs", return_value=client_mock
) as mock_async_client:
yield mock_async_client

Expand Down

0 comments on commit d1e466e

Please sign in to comment.