Add hostname to DHCP discovery title (#89426)
This commit is contained in:
parent
5828e9a8d2
commit
c9d5baca75
2 changed files with 2 additions and 3 deletions
|
@ -95,10 +95,9 @@ class ReolinkFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
await self.async_set_unique_id(mac_address)
|
||||
self._abort_if_unique_id_configured(updates={CONF_HOST: discovery_info.ip})
|
||||
|
||||
short_mac = mac_address[-8:].upper()
|
||||
self.context["title_placeholders"] = {
|
||||
"short_mac": short_mac,
|
||||
"ip_address": discovery_info.ip,
|
||||
"hostname": discovery_info.hostname,
|
||||
}
|
||||
|
||||
self._host = discovery_info.ip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue