Comment out opencv-python that is not installable on arm (#7426)

* Comment out opencv-python that is not installable on arm

* Disable import-error
pull/7430/head
Andrey 2017-05-03 21:08:21 +03:00 committed by GitHub
parent af5439860f
commit 403a721e91
3 changed files with 5 additions and 4 deletions

View File

@ -88,7 +88,7 @@ CONFIG_SCHEMA = vol.Schema({
def cv_image_to_bytes(cv_image): def cv_image_to_bytes(cv_image):
"""Convert OpenCV image to bytes.""" """Convert OpenCV image to bytes."""
import cv2 import cv2 # pylint: disable=import-error
# pylint: disable=no-member # pylint: disable=no-member
encode_param = [int(cv2.IMWRITE_JPEG_QUALITY), 90] encode_param = [int(cv2.IMWRITE_JPEG_QUALITY), 90]
@ -103,7 +103,7 @@ def cv_image_to_bytes(cv_image):
def cv_image_from_bytes(image): def cv_image_from_bytes(image):
"""Convert image bytes to OpenCV image.""" """Convert image bytes to OpenCV image."""
import cv2 import cv2 # pylint: disable=import-error
import numpy import numpy
# pylint: disable=no-member # pylint: disable=no-member
@ -112,7 +112,7 @@ def cv_image_from_bytes(image):
def process_image(image, classifier_group, is_camera): def process_image(image, classifier_group, is_camera):
"""Process the image given a classifier group.""" """Process the image given a classifier group."""
import cv2 import cv2 # pylint: disable=import-error
import numpy import numpy
# pylint: disable=no-member # pylint: disable=no-member

View File

@ -418,7 +418,7 @@ oauth2client==4.0.0
oemthermostat==1.1 oemthermostat==1.1
# homeassistant.components.opencv # homeassistant.components.opencv
opencv-python==3.2.0.6 # opencv-python==3.2.0.6
# homeassistant.components.sensor.openevse # homeassistant.components.sensor.openevse
openevsewifi==0.4 openevsewifi==0.4

View File

@ -15,6 +15,7 @@ COMMENT_REQUIREMENTS = (
'pybluez', 'pybluez',
'beacontools', 'beacontools',
'bluepy', 'bluepy',
'opencv-python',
'python-lirc', 'python-lirc',
'gattlib', 'gattlib',
'pyuserinput', 'pyuserinput',