Show device name in Twinkly discovery (#133814)

This commit is contained in:
Joost Lekkerkerker 2024-12-22 19:00:49 +01:00 committed by GitHub
parent feca7c28cf
commit 0e9965150e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -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],

View File

@ -1,5 +1,6 @@
{
"config": {
"flow_title": "{name}",
"step": {
"user": {
"data": {