You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't seem to work well in code-server addon of HA.
It works by adding . to the imports in the last two lines:
# noinspection PyBroadExceptiontry:
"""works in pyscript environment only"""# noinspection PyUnresolvedReferences,PyUnboundLocalVariabletask.current_task()
except:
from .pyscript_builtinsimport*from .pyscript_generatedimport*
Not a python expert... but I thought anyway this would be the right way to import relative code within the same directory ?
Not sure if other IDE's would have problems with the dots.
Even with this fix I still seem to have a small strange ambiguous "bug":
It claims to not find the member app_config but at the same time shows the definition of it 😕
It seems to be only pylint that has problems, not intelli-sense.
Regarding the output of the pylint runs, it seems to include the modules directory as it lists it in the output as extrapaths, which are defined in settings.json:
It doesn't seem to work well in code-server addon of HA.
It works by adding
.
to the imports in the last two lines:Not a python expert... but I thought anyway this would be the right way to import relative code within the same directory ?
Not sure if other IDE's would have problems with the dots.
Even with this fix I still seem to have a small strange ambiguous "bug":
It claims to not find the member
app_config
but at the same time shows the definition of it 😕It seems to be only pylint that has problems, not intelli-sense.
Regarding the output of the pylint runs, it seems to include the modules directory as it lists it in the output as extrapaths, which are defined in
settings.json
:Full uutput of the pylint console in the code server
The text was updated successfully, but these errors were encountered: