diff --git a/custom_components/yerushamayim/config_flow.py b/custom_components/yerushamayim/config_flow.py index baafe59..bf03d3e 100644 --- a/custom_components/yerushamayim/config_flow.py +++ b/custom_components/yerushamayim/config_flow.py @@ -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: diff --git a/custom_components/yerushamayim/strings.json b/custom_components/yerushamayim/strings.json index 766b30a..67ef200 100644 --- a/custom_components/yerushamayim/strings.json +++ b/custom_components/yerushamayim/strings.json @@ -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." } } } \ No newline at end of file