diff --git a/custom_components/yerushamayim/config_flow.py b/custom_components/yerushamayim/config_flow.py index 4c3172a..3b2b277 100644 --- a/custom_components/yerushamayim/config_flow.py +++ b/custom_components/yerushamayim/config_flow.py @@ -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: diff --git a/custom_components/yerushamayim/strings.json b/custom_components/yerushamayim/strings.json index 92b370c..cbf1c36 100644 --- a/custom_components/yerushamayim/strings.json +++ b/custom_components/yerushamayim/strings.json @@ -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%]" } } } \ No newline at end of file