From 0e9965150e7cc0fad81531b1bff84355b524608a Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 22 Dec 2024 19:00:49 +0100 Subject: [PATCH] Show device name in Twinkly discovery (#133814) --- homeassistant/components/twinkly/config_flow.py | 3 +++ homeassistant/components/twinkly/strings.json | 1 + 2 files changed, 4 insertions(+) diff --git a/homeassistant/components/twinkly/config_flow.py b/homeassistant/components/twinkly/config_flow.py index 4dec8809f07..53ba8f084c3 100644 --- a/homeassistant/components/twinkly/config_flow.py +++ b/homeassistant/components/twinkly/config_flow.py @@ -80,6 +80,9 @@ class TwinklyConfigFlow(ConfigFlow, domain=DOMAIN): return self._create_entry_from_device(device_info, host) self._set_confirm_only() + self.context["title_placeholders"] = { + "name": device_info[DEV_NAME], + } placeholders = { "model": device_info[DEV_MODEL], "name": device_info[DEV_NAME], diff --git a/homeassistant/components/twinkly/strings.json b/homeassistant/components/twinkly/strings.json index d27de8a75de..bbc3d67373d 100644 --- a/homeassistant/components/twinkly/strings.json +++ b/homeassistant/components/twinkly/strings.json @@ -1,5 +1,6 @@ { "config": { + "flow_title": "{name}", "step": { "user": { "data": {