From c02d9050b747f47e22d60f57e9afeb8aedc214ed Mon Sep 17 00:00:00 2001 From: Spartan-II-117 Date: Mon, 5 Oct 2020 05:26:06 -0700 Subject: [PATCH] Use common Strings for Z-Wave config flow (#41161) * Use common Strings for Z-Wave config flow * Update strings.json * Update config_flow.py --- homeassistant/components/zwave/config_flow.py | 2 +- homeassistant/components/zwave/strings.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/zwave/config_flow.py b/homeassistant/components/zwave/config_flow.py index d6c64e914f6..6357d9929b1 100644 --- a/homeassistant/components/zwave/config_flow.py +++ b/homeassistant/components/zwave/config_flow.py @@ -31,7 +31,7 @@ class ZwaveFlowHandler(config_entries.ConfigFlow): async def async_step_user(self, user_input=None): """Handle a flow start.""" if self._async_current_entries(): - return self.async_abort(reason="one_instance_only") + return self.async_abort(reason="single_instance_allowed") errors = {} diff --git a/homeassistant/components/zwave/strings.json b/homeassistant/components/zwave/strings.json index cab8e7461cb..852b8ca22fa 100644 --- a/homeassistant/components/zwave/strings.json +++ b/homeassistant/components/zwave/strings.json @@ -14,8 +14,8 @@ "option_error": "Z-Wave validation failed. Is the path to the USB stick correct?" }, "abort": { - "already_configured": "Z-Wave is already configured", - "one_instance_only": "Component only supports one Z-Wave instance" + "already_configured": "[%key:common::config_flow::abort::already_configured_device%]", + "single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]" } }, "state": { @@ -30,4 +30,4 @@ "ready": "Ready" } } -} \ No newline at end of file +}