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:
Erik Montnemery 2024-10-02 13:04:52 +02:00 committed by GitHub
parent 4cd6813d16
commit b8a00bfbfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()