mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Lint suppression cleanups (#47248)
* Unused pylint suppression cleanups * Remove outdated pylint bug references * Add flake8-noqa config and note to run it every now and then * Add codes to noqa's * Unused noqa cleanups
This commit is contained in:
@ -341,9 +341,8 @@ class TensorFlowImageProcessor(ImageProcessingEntity):
|
||||
|
||||
start = time.perf_counter()
|
||||
try:
|
||||
import cv2 # pylint: disable=import-error, import-outside-toplevel
|
||||
import cv2 # pylint: disable=import-outside-toplevel
|
||||
|
||||
# pylint: disable=no-member
|
||||
img = cv2.imdecode(np.asarray(bytearray(image)), cv2.IMREAD_UNCHANGED)
|
||||
inp = img[:, :, [2, 1, 0]] # BGR->RGB
|
||||
inp_expanded = inp.reshape(1, inp.shape[0], inp.shape[1], 3)
|
||||
|
Reference in New Issue
Block a user