def check_backend() -> bool:
        """Check if gatttool is available on the system."""
        try:
            call('gatttool', stdout=PIPE, stderr=PIPE)
            return True
        except OSError as os_err:
            msg = 'gatttool not found: {}'.format(str(os_err))
            _LOGGER.error(msg)
        return False
def check_backend ( ) -> bool : try : call ( 'gatttool' , stdout = PIPE , stderr = PIPE ) return True except OSError as os_err : msg = 'gatttool not found: {}' . format ( str ( os_err ) ) _LOGGER . error ( msg ) return False
Check if gatttool is available on the system.