Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавить проверку на использование колонок в других платформах УД #600

Open
AlexxIT opened this issue Jan 5, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 5, 2025

2025-01-05 15:13:24.976 ERROR (MainThread) [homeassistant.components.camera] Error while setting up yandex_station platform for camera
Traceback (most recent call last):
  File "/config/custom_components/yandex_station/core/yandex_quasar.py", line 197, in load_speakers
    scenario = next(
        v for k, v in scenarios.items() if device_id.startswith(k)
    )
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/yandex_station/camera.py", line 26, in async_setup_entry
    [YandexLyrics(quasar, speaker) for speaker in await quasar.load_speakers()],
                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/yandex_station/core/yandex_quasar.py", line 201, in load_speakers
    scenario = await self.add_scenario(device_id)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/yandex_station/core/yandex_quasar.py", line 285, in add_scenario
    assert resp["status"] == "ok", resp
           ^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'request_id': '83808230-513f-4421-9f59-627d8260f5e9', 'status': 'error', 'code': 'VOICE_TRIGGER_PHRASE_IS_ALREADY_TAKEN', 'message': 'Активационная фраза для сценария уже используется'}
@AlexxIT AlexxIT added the enhancement New feature or request label Jan 5, 2025
@AlexxIT AlexxIT self-assigned this Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant