Lint config cleanups (#28864)

* Remove bunch of unneeded lint exclusions

* Use symbolic names instead of identifiers in pylint disables

* Tighten scope of some pylint disables
This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2019-11-25 22:40:08 -08:00
1 parent afaa464142
commit 99c7608fb4
77 files changed
+92 -126

No files matched your search

@@ -104,8 +104,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
try:
# Display warning that PIL will be used if no OpenCV is found.
# pylint: disable=unused-import,unused-variable
import cv2 # noqa: F401
import cv2 # noqa: F401 pylint: disable=unused-import
except ImportError:
_LOGGER.warning(
"No OpenCV library found. TensorFlow will process image with "