Skip to content

Commit

Permalink
fix: config flow form #9
Browse files Browse the repository at this point in the history
  • Loading branch information
chilikla authored Oct 19, 2024
1 parent ce09d5f commit a4243ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion custom_components/yerushamayim/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ async def async_step_user(
return self.async_show_form(
step_id="user",
data_schema=vol.Schema({}),
title="Do you want to add Yerushamayim to Home Assistant?"
description_placeholders={
"name": "Yerushamayim Weather"
}
)

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

0 comments on commit a4243ca

Please sign in to comment.