From 5c2bf6dc7c201fd442ea50b5e76074c6f16a44a1 Mon Sep 17 00:00:00 2001
From: Robert Svensson <Kane610@users.noreply.github.com>
Date: Mon, 14 Oct 2019 23:15:46 +0200
Subject: [PATCH] Improve discovery title (#27664)

---
 homeassistant/components/deconz/.translations/en.json | 1 +
 homeassistant/components/deconz/config_flow.py        | 1 +
 homeassistant/components/deconz/strings.json          | 1 +
 3 files changed, 3 insertions(+)

diff --git a/homeassistant/components/deconz/.translations/en.json b/homeassistant/components/deconz/.translations/en.json
index c00bfca3564..e9c64ffe5fa 100644
--- a/homeassistant/components/deconz/.translations/en.json
+++ b/homeassistant/components/deconz/.translations/en.json
@@ -11,6 +11,7 @@
         "error": {
             "no_key": "Couldn't get an API key"
         },
+        "flow_title": "deCONZ Zigbee gateway ({host})",
         "step": {
             "hassio_confirm": {
                 "data": {
diff --git a/homeassistant/components/deconz/config_flow.py b/homeassistant/components/deconz/config_flow.py
index 91768584e8a..5ede8e715b9 100644
--- a/homeassistant/components/deconz/config_flow.py
+++ b/homeassistant/components/deconz/config_flow.py
@@ -189,6 +189,7 @@ class DeconzFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
 
         # pylint: disable=no-member # https://github.com/PyCQA/pylint/issues/3167
         self.context[CONF_BRIDGEID] = bridgeid
+        self.context["title_placeholders"] = {"host": discovery_info[CONF_HOST]}
 
         self.deconz_config = {
             CONF_HOST: discovery_info[CONF_HOST],
diff --git a/homeassistant/components/deconz/strings.json b/homeassistant/components/deconz/strings.json
index db43c022822..3571a9e1207 100644
--- a/homeassistant/components/deconz/strings.json
+++ b/homeassistant/components/deconz/strings.json
@@ -1,6 +1,7 @@
 {
     "config": {
         "title": "deCONZ Zigbee gateway",
+        "flow_title": "deCONZ Zigbee gateway ({host})",
         "step": {
             "init": {
                 "title": "Define deCONZ gateway",
-- 
GitLab