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

Add announce track mode and hide order item mode #311

Merged
merged 2 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,8 @@ script:

- `без лишних слов: да/нет`
- `ответить шепотом: да/нет`
- `анонсировать треки: да/нет`
- `скрывать названия товаров: да/нет`
- `звук активации: да/нет`
- `одним устройством: да/нет`
- `понимать детей: да/нет`
Expand Down
16 changes: 16 additions & 0 deletions custom_components/yandex_station/core/yandex_quasar.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,22 @@ async def set_account_config(self, key: str, value):
'key': 'tts_whisper',
'values': BOOL_CONFIG
},
'анонсировать треки': {
'api': 'user/settings',
'key': 'music',
'values': {
'да': {'announce_tracks': True},
'нет': {'announce_tracks': False},
}
},
'скрывать названия товаров': {
'api': 'user/settings',
'key': 'order',
'values': {
'да': {'hide_item_names': True},
'нет': {'hide_item_names': False},
}
},
'звук активации': {
'key': 'jingle', # /get_account_config
'values': BOOL_CONFIG
Expand Down