From a6247df088d673aa147eef4ff50b3d9a93b3922a Mon Sep 17 00:00:00 2001 From: chilikla Date: Sun, 20 Oct 2024 10:42:06 +0300 Subject: [PATCH] fix: config flow form #12 --- custom_components/yerushamayim/config_flow.py | 3 ++- custom_components/yerushamayim/strings.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom_components/yerushamayim/config_flow.py b/custom_components/yerushamayim/config_flow.py index 3b2b277..bfd16c1 100644 --- a/custom_components/yerushamayim/config_flow.py +++ b/custom_components/yerushamayim/config_flow.py @@ -31,7 +31,8 @@ async def async_step_user( return self.async_show_form( step_id="user", - data_schema=vol.Schema({}) + data_schema=vol.Schema({}), + description_placeholders={} ) 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 cbf1c36..fe16bea 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%]", + "title": "Add Yerushamayim Weather", "description": "Do you want to add Yerushamayim to Home Assistant?" } }, "abort": { - "single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]" + "single_instance_allowed": "Already configured. Only a single instance is allowed." } } } \ No newline at end of file