Pylance annoyancess (using HABApp)

I’m using Pylance in Visual Studio Code for my HABApp scripts and there are some annoying code hints that I haven’t figured out yet how to get rid of.

Module is not callable:

I have some more examples but I want to investigate further before I post it here.

Any help is appreciated.

Could you show the import of time?

Thanks Sebastian for your reply!

I think I’ve just resolved it and I was going to delete this thread.

I found a double import. It’s embarrassing :face_with_open_eyes_and_hand_over_mouth:

import time
from datetime import datetime, time, timedelta

Errors like this are 5€ directly to my pizza fund :wink:

3 Likes