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:
Paulus Schoutsen
2025-04-24 13:12:11 -04:00
committed by GitHub
parent f69484ba02
commit fa80c0a88d
10 changed files with 34 additions and 17 deletions

View File

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