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

[zh-hk] HassMediaPause #2334

Merged
merged 1 commit into from
Jul 17, 2024
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
5 changes: 5 additions & 0 deletions responses/zh-hk/HassMediaPause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: zh-hk
responses:
intents:
HassMediaPause:
default: "暫停完成"
17 changes: 17 additions & 0 deletions sentences/zh-hk/media_player_HassMediaPause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: zh-hk
intents:
HassMediaPause:
data:
- sentences:
- "(暫停;<name>)"
requires_context:
domain: media_player

- sentences:
- "pause"
requires_context:
area:
slot: true

- sentences:
- "暫停 <area> [ [<the>| <my>](music|[tv ]show[s]|media[ player[s]]) ]"
32 changes: 32 additions & 0 deletions tests/zh-hk/media_player_HassMediaPause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
language: zh-hk
tests:
- sentences:
- "暫停 TV"
- "TV 暫停"
intent:
name: HassMediaPause
slots:
name: "TV"
response: "暫停完成"

- sentences:
- "pause"
intent:
name: HassMediaPause
slots:
area: "Living Room"
context:
area: Living Room
response: "暫停完成"

- sentences:
- "暫停 客廳 music"
- "暫停 客廳 media player"
- "暫停 客廳 tv show"
intent:
name: HassMediaPause
slots:
area: "客廳"
context:
area: Living Room
response: "暫停完成"