diff --git a/homeassistant/components/yalexs_ble/config_flow.py b/homeassistant/components/yalexs_ble/config_flow.py index 14a8f937fd3..b87066b50fe 100644 --- a/homeassistant/components/yalexs_ble/config_flow.py +++ b/homeassistant/components/yalexs_ble/config_flow.py @@ -276,7 +276,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): self._discovered_devices[discovery.address] = discovery if not self._discovered_devices: - return self.async_abort(reason="no_unconfigured_devices") + return self.async_abort(reason="no_devices_found") data_schema = vol.Schema( { diff --git a/homeassistant/components/yalexs_ble/strings.json b/homeassistant/components/yalexs_ble/strings.json index 9a83bca29fb..0f1f138fd6c 100644 --- a/homeassistant/components/yalexs_ble/strings.json +++ b/homeassistant/components/yalexs_ble/strings.json @@ -32,7 +32,6 @@ "abort": { "already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]", "already_configured": "[%key:common::config_flow::abort::already_configured_device%]", - "no_unconfigured_devices": "No unconfigured devices found.", "no_devices_found": "[%key:common::config_flow::abort::no_devices_found%]", "reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]" } diff --git a/tests/components/yalexs_ble/test_config_flow.py b/tests/components/yalexs_ble/test_config_flow.py index 7c63a568acd..a0b8dfb6862 100644 --- a/tests/components/yalexs_ble/test_config_flow.py +++ b/tests/components/yalexs_ble/test_config_flow.py @@ -79,7 +79,7 @@ async def test_user_step_no_devices_found(hass: HomeAssistant) -> None: DOMAIN, context={"source": config_entries.SOURCE_USER} ) assert result["type"] == FlowResultType.ABORT - assert result["reason"] == "no_unconfigured_devices" + assert result["reason"] == "no_devices_found" async def test_user_step_no_new_devices_found(hass: HomeAssistant) -> None: @@ -103,7 +103,7 @@ async def test_user_step_no_new_devices_found(hass: HomeAssistant) -> None: DOMAIN, context={"source": config_entries.SOURCE_USER} ) assert result["type"] == FlowResultType.ABORT - assert result["reason"] == "no_unconfigured_devices" + assert result["reason"] == "no_devices_found" async def test_user_step_invalid_keys(hass: HomeAssistant) -> None: