def METHOD_NAME(hci):
    """Resetting the Bluetooth adapter."""
    _LOGGER.debug("Power cycling Bluetooth adapter hci%i", hci)
    soft_block, hard_block = rfkill_list_bluetooth(hci)
    if soft_block is True:
        _LOGGER.warning("Bluetooth adapter hci%i is soft blocked!", hci)
        return
    if hard_block is True:
        _LOGGER.warning("Bluetooth adapter hci%i is hard blocked!", hci)
        return
    adapter = MGMTBluetoothCtl(hci)
    if adapter.mac is None:
        _LOGGER.error(
            "hci%i seems not to exist (anymore), check BT interface mac address in your settings. "
            "Available adapters: %s ",
            hci,
            adapter.presented_list,
        )
        return
    pstate_before = adapter.powered
    if pstate_before is True:
        _LOGGER.debug("Current power state of bluetooth adapter is ON.")
        adapter.powered = False
        time.sleep(2)
    elif pstate_before is False:
        _LOGGER.warning(
            "Current power state of bluetooth adapter hci%i is OFF, trying to turn it back ON.",
            hci,
        )
    else:
        _LOGGER.debug("Power state of bluetooth adapter could not be determined.")
        return
    adapter.powered = True
    time.sleep(3)
    # Check the state after the reset
    pstate_after = adapter.powered
    if pstate_after is True:
        if pstate_before is False:
            _LOGGER.warning("Bluetooth adapter hci%i successfuly turned back ON.", hci)
        else:
            _LOGGER.debug("Power state of bluetooth adapter is ON after power cycle.")
    elif pstate_after is False:
        _LOGGER.warning(
            "Power state of bluetooth adapter hci%i is OFF after power cycle.", hci
        )
    else:
        _LOGGER.debug(
            "Power state of bluetooth adapter could not be determined after power cycle."
        )