Set placeholders in homekit config flow title (#23311)
This commit is contained in:
1 parent
ee88433fb1
commit
baeb3cddc6
3 files changed
+68
-41
No files matched your search
@@ -130,6 +130,11 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow):
|
||||
status_flags = int(properties['sf'])
|
||||
paired = not status_flags & 0x01
|
||||
|
||||
# pylint: disable=unsupported-assignment-operation
|
||||
self.context['title_placeholders'] = {
|
||||
'name': discovery_info['name'],
|
||||
}
|
||||
|
||||
# The configuration number increases every time the characteristic map
|
||||
# needs updating. Some devices use a slightly off-spec name so handle
|
||||
# both cases.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"config": {
|
||||
"title": "HomeKit Accessory",
|
||||
"flow_title": "HomeKit Accessory: {name}",
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Pair with HomeKit Accessory",
|
||||
|
||||
Reference in new issue
Block a user