[solved] Python script - import or no import support

I’m a bit confused. On one hand I know that import in Python scripts is not supported by HA (see Import in python). On the other hand my script works just fine. I have a sensor that pulls data from HA using API. I’m using json and urllib2 to do this. The sensor wouldn’t give me anything if the import failed.

So, what is going on here?

EDIT: please ignore this. I’m using command line after all…

Hi @bk86a

Can you please share your code of urllib2 and command line .

Thanks