__salt__['query.odb'] not working on custom code?

Hi, There is something that i dont understand :
In a custom code i have that code

args = ['RPM']
kwargs = {'mode': '01', 'pid': '0C', 'header': '7DF','baudrate': '500000', 'protocol': '6'}
result = __salt__['obd.query'](*args, **kwargs)

This is not working. I try to print it or to do things with the result, but there is an exception (kind of nameException?)

If the other hand, if i try to execute the direct cmd in the autopi as query.odb RPM, it’s working well. What am i missing?