Skip to content

Commit

Permalink
fix: config flow form #11
Browse files Browse the repository at this point in the history
  • Loading branch information
chilikla authored Oct 19, 2024
1 parent b476b2e commit 19b867b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions custom_components/yerushamayim/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ async def async_step_user(

return self.async_show_form(
step_id="user",
data_schema=vol.Schema({}),
description_placeholders={
"name": "Yerushamayim Weather"
}
data_schema=vol.Schema({})
)

async def async_step_import(self, user_input: dict[str, Any]) -> FlowResult:
Expand Down
8 changes: 4 additions & 4 deletions custom_components/yerushamayim/strings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"title": "Yerushamayim Weather",
"config": {
"title": "Yerushamayim Weather",
"step": {
"user": {
"title": "Add Yerushamayim Weather",
"description": "Do you want to add {name} to Home Assistant?"
"title": "[%key:component::yerushamayim::title%]",
"description": "Do you want to add Yerushamayim to Home Assistant?"
}
},
"abort": {
"single_instance_allowed": "Already configured. Only a single instance is allowed."
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]"
}
}
}

0 comments on commit 19b867b

Please sign in to comment.