Skip to content

Commit

Permalink
dry
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4nt0r committed Oct 9, 2024
1 parent 30b113c commit df3d791
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 2 additions & 6 deletions homeassistant/components/habitica/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ api_call:
object:
cast_skill:
fields:
config_entry:
config_entry: &config_entry
required: true
selector:
config_entry:
Expand All @@ -39,11 +39,7 @@ cast_skill:
text:
get_tasks:
fields:
config_entry:
required: true
selector:
config_entry:
integration: habitica
config_entry: *config_entry
filter:
collapsed: true
fields:
Expand Down
12 changes: 8 additions & 4 deletions homeassistant/components/habitica/strings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"common": {
"config_entry_name": "Select character",
"task_name": "Task name"
},
"config": {
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]"
Expand Down Expand Up @@ -201,15 +205,15 @@
"description": "Use a skill or spell from your Habitica character on a specific task to affect its progress or status.",
"fields": {
"config_entry": {
"name": "Select character",
"name": "[%key:component::habitica::common::config_entry_name%]",
"description": "Choose the Habitica character to cast the skill."
},
"skill": {
"name": "Skill",
"description": "Select the skill or spell you want to cast on the task. Only skills corresponding to your character's class can be used."
},
"task": {
"name": "Task name",
"name": "[%key:component::habitica::common::task_name%]",
"description": "The name (or task ID) of the task you want to target with the skill or spell."
}
}
Expand All @@ -219,7 +223,7 @@
"description": "Retrieve tasks from your Habitica character.",
"fields": {
"config_entry": {
"name": "Select character",
"name": "[%key:component::habitica::common::config_entry_name%]",
"description": "Choose the Habitica character to retrieve tasks from."
},
"type": {
Expand All @@ -231,7 +235,7 @@
"description": "Filter tasks by difficulty."
},
"task": {
"name": "Task name",
"name": "[%key:component::habitica::common::task_name%]",
"description": "Select tasks by matching their name (or task ID)."
},
"tag": {
Expand Down

0 comments on commit df3d791

Please sign in to comment.