Ensure motionblinds_ble config flow title_placeholders items are [str, str] (#127201)
* Ensure motionblinds_ble config flow title_placeholders items are [str, str] * Tweak
This commit is contained in:
parent
4cd6813d16
commit
b8a00bfbfb
1 changed files with 2 additions and 3 deletions
|
@ -67,9 +67,8 @@ class FlowHandler(ConfigFlow, domain=DOMAIN):
|
|||
|
||||
self._discovery_info = discovery_info
|
||||
self._mac_code = get_mac_from_local_name(discovery_info.name)
|
||||
self._display_name = DISPLAY_NAME.format(mac_code=self._mac_code)
|
||||
self.context["local_name"] = discovery_info.name
|
||||
self.context["title_placeholders"] = {"name": self._display_name}
|
||||
self._display_name = display_name = DISPLAY_NAME.format(mac_code=self._mac_code)
|
||||
self.context["title_placeholders"] = {"name": display_name}
|
||||
|
||||
return await self.async_step_confirm()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue