mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Bump hass-nabucasa to 0.96.0 (#143542)
* Bump hass-nabucasa to 0.96.0 * Adjust for new voice info format
This commit is contained in:
@@ -6,7 +6,8 @@ from http import HTTPStatus
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
from hass_nabucasa.voice import TTS_VOICES, VoiceError, VoiceTokenError
|
||||
from hass_nabucasa.voice import VoiceError, VoiceTokenError
|
||||
from hass_nabucasa.voice_data import TTS_VOICES
|
||||
import pytest
|
||||
import voluptuous as vol
|
||||
|
||||
@@ -203,7 +204,7 @@ async def test_provider_properties(
|
||||
assert "nl-NL" in engine.supported_languages
|
||||
supported_voices = engine.async_get_supported_voices("nl-NL")
|
||||
assert supported_voices is not None
|
||||
assert Voice("ColetteNeural", "ColetteNeural") in supported_voices
|
||||
assert Voice("ColetteNeural", "Colette") in supported_voices
|
||||
supported_voices = engine.async_get_supported_voices("missing_language")
|
||||
assert supported_voices is None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user