Use new config entry update/abort helper in yalexs_ble (#108675)
Use new config entry update/abort helper in yalexs_ble uses the new helper from https://github.com/home-assistant/core/pull/108034pull/108688/head
parent
bd7eb01546
commit
4378a171b2
|
@ -207,11 +207,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
user_input[CONF_SLOT],
|
user_input[CONF_SLOT],
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
self.hass.config_entries.async_update_entry(
|
return self.async_update_reload_and_abort(
|
||||||
reauth_entry, data={**reauth_entry.data, **user_input}
|
reauth_entry, data={**reauth_entry.data, **user_input}
|
||||||
)
|
)
|
||||||
await self.hass.config_entries.async_reload(reauth_entry.entry_id)
|
|
||||||
return self.async_abort(reason="reauth_successful")
|
|
||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="reauth_validate",
|
step_id="reauth_validate",
|
||||||
|
|
|
@ -958,7 +958,7 @@ async def test_reauth(hass: HomeAssistant) -> None:
|
||||||
result2["flow_id"],
|
result2["flow_id"],
|
||||||
{
|
{
|
||||||
CONF_KEY: "2fd51b8621c6a139eaffbedcb846b60f",
|
CONF_KEY: "2fd51b8621c6a139eaffbedcb846b60f",
|
||||||
CONF_SLOT: 66,
|
CONF_SLOT: 67,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
Loading…
Reference in New Issue