From 3e8e998078be75ae793152ea3ec38f2b50b3ea22 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 28 Feb 2019 17:46:21 +0530 Subject: [PATCH] Upgrade numpy to 1.16.2 (#21525) --- homeassistant/components/binary_sensor/trend.py | 2 +- homeassistant/components/image_processing/opencv.py | 9 ++------- homeassistant/components/image_processing/tensorflow.py | 4 ++-- homeassistant/components/sensor/pollen.py | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 6 files changed, 8 insertions(+), 13 deletions(-) diff --git a/homeassistant/components/binary_sensor/trend.py b/homeassistant/components/binary_sensor/trend.py index 0d4e9631650..fe3d10ab72c 100644 --- a/homeassistant/components/binary_sensor/trend.py +++ b/homeassistant/components/binary_sensor/trend.py @@ -17,7 +17,7 @@ from homeassistant.helpers.entity import generate_entity_id from homeassistant.helpers.event import async_track_state_change from homeassistant.util import utcnow -REQUIREMENTS = ['numpy==1.16.1'] +REQUIREMENTS = ['numpy==1.16.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/image_processing/opencv.py b/homeassistant/components/image_processing/opencv.py index 7cb5184b116..10173cdb725 100644 --- a/homeassistant/components/image_processing/opencv.py +++ b/homeassistant/components/image_processing/opencv.py @@ -1,9 +1,4 @@ -""" -Component that performs OpenCV classification on images. - -For more details about this platform, please refer to the documentation at -https://home-assistant.io/components/image_processing.opencv/ -""" +"""Support for OpenCV classification on images.""" from datetime import timedelta import logging @@ -16,7 +11,7 @@ from homeassistant.components.image_processing import ( from homeassistant.core import split_entity_id import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['numpy==1.16.1'] +REQUIREMENTS = ['numpy==1.16.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/image_processing/tensorflow.py b/homeassistant/components/image_processing/tensorflow.py index f0e8f5182fc..4e4a80a525e 100644 --- a/homeassistant/components/image_processing/tensorflow.py +++ b/homeassistant/components/image_processing/tensorflow.py @@ -12,7 +12,7 @@ from homeassistant.core import split_entity_id from homeassistant.helpers import template import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['numpy==1.16.1', 'pillow==5.4.1', 'protobuf==3.6.1'] +REQUIREMENTS = ['numpy==1.16.2', 'pillow==5.4.1', 'protobuf==3.6.1'] _LOGGER = logging.getLogger(__name__) @@ -111,7 +111,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None): "No OpenCV library found. TensorFlow will process image with " "PIL at reduced resolution") - # setup tensorflow graph, session, and label map to pass to processor + # Set up Tensorflow graph, session, and label map to pass to processor # pylint: disable=no-member detection_graph = tf.Graph() with detection_graph.as_default(): diff --git a/homeassistant/components/sensor/pollen.py b/homeassistant/components/sensor/pollen.py index 28e4f823222..08fe45a22a6 100644 --- a/homeassistant/components/sensor/pollen.py +++ b/homeassistant/components/sensor/pollen.py @@ -13,7 +13,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle -REQUIREMENTS = ['numpy==1.16.1', 'pypollencom==2.2.3'] +REQUIREMENTS = ['numpy==1.16.2', 'pypollencom==2.2.3'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index b1e3c570702..c6568676e32 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -752,7 +752,7 @@ nuheat==0.3.0 # homeassistant.components.image_processing.opencv # homeassistant.components.image_processing.tensorflow # homeassistant.components.sensor.pollen -numpy==1.16.1 +numpy==1.16.2 # homeassistant.components.google oauth2client==4.0.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 102d464b97d..26d77409fca 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -151,7 +151,7 @@ mficlient==0.3.0 # homeassistant.components.image_processing.opencv # homeassistant.components.image_processing.tensorflow # homeassistant.components.sensor.pollen -numpy==1.16.1 +numpy==1.16.2 # homeassistant.components.mqtt # homeassistant.components.shiftr