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:
parent
afaa464142
commit
99c7608fb4
77 changed files with 92 additions and 126 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue