mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Use common Strings for Z-Wave config flow (#41161)
* Use common Strings for Z-Wave config flow * Update strings.json * Update config_flow.py
This commit is contained in:
parent
15ade1232e
commit
c02d9050b7
@ -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 = {}
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user