diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index eabe0cd500a..ba22488f212 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -41,6 +41,7 @@ "python.terminal.activateEnvInCurrentTerminal": true, "python.testing.pytestArgs": ["--no-cov"], "pylint.importStrategy": "fromEnvironment", + "python.analysis.typeCheckingMode": "basic", "editor.formatOnPaste": false, "editor.formatOnSave": true, "editor.formatOnType": true, diff --git a/.vscode/settings.default.json b/.vscode/settings.default.json index 8c57059959b..1fae0e55912 100644 --- a/.vscode/settings.default.json +++ b/.vscode/settings.default.json @@ -7,6 +7,8 @@ "python.testing.pytestEnabled": false, // https://code.visualstudio.com/docs/python/linting#_general-settings "pylint.importStrategy": "fromEnvironment", + // Pyright is too pedantic for Home Assistant + "python.analysis.typeCheckingMode": "basic", "json.schemas": [ { "fileMatch": [