Skip to content

Commit

Permalink
Ensure motionblinds_ble config flow title_placeholders items are [str…
Browse files Browse the repository at this point in the history
…, str] (home-assistant#127201)

* Ensure motionblinds_ble config flow title_placeholders items are [str, str]

* Tweak
  • Loading branch information
emontnemery authored Oct 2, 2024
1 parent 4cd6813 commit b8a00bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions homeassistant/components/motionblinds_ble/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ async def async_step_bluetooth(

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

Expand Down

0 comments on commit b8a00bf

Please sign in to comment.