def clear_cached_data(self):
<EOL>if self._adapter.is_powered:<EOL><INDENT>self._adapter.power_off()<EOL><DEDENT>with open(os.devnull, '<STR_LIT:w>') as devnull:<EOL><INDENT>subprocess.call('<STR_LIT>',<EOL>shell=True, stdout=devnull, stderr=subprocess.STDOUT)<EOL>subprocess.call('<STR_LIT>',<EOL>shell=True, stdout=devnull, stderr=subprocess.STDOUT)<EOL><DEDENT>
Clear the internal bluetooth device cache.  This is useful if a device
        changes its state like name and it can't be detected with the new state
        anymore.  WARNING: This will delete some files underneath the running user's
        ~/Library/Preferences/ folder!

        See this Stackoverflow question for information on what the function does:
        http://stackoverflow.com/questions/20553957/how-can-i-clear-the-corebluetooth-cache-on-macos