mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
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:
committed by
Paulus Schoutsen
parent
afaa464142
commit
99c7608fb4
@ -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 "
|
||||
|
Reference in New Issue
Block a user