Tweak title of zha config entry created by yellow hw (#73797)

This commit is contained in:
Erik Montnemery 2022-06-21 22:21:31 +02:00 committed by GitHub
parent 67618311fa
commit 274f585646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 2 deletions

View file

@ -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()