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ä 2019-11-26 08:40:08 +02:00 committed by Paulus Schoutsen
parent afaa464142
commit 99c7608fb4
77 changed files with 92 additions and 126 deletions

View file

@ -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 "