Tweak title of zha config entry created by yellow hw (#73797)
This commit is contained in:
parent
67618311fa
commit
274f585646
3 changed files with 38 additions and 2 deletions
|
@ -269,7 +269,7 @@ class ZhaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
except vol.Invalid:
|
||||
return self.async_abort(reason="invalid_hardware_data")
|
||||
|
||||
self._title = data["port"]["path"]
|
||||
self._title = data.get("name", data["port"]["path"])
|
||||
|
||||
self._set_confirm_only()
|
||||
return await self.async_step_confirm_hardware()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue