Skip to content

Commit

Permalink
Upgrade numpy to 1.15.3 (#17796)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Oct 26, 2018
1 parent c00da50 commit 714d44c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions homeassistant/components/binary_sensor/trend.py
Expand Up @@ -15,14 +15,14 @@
BinarySensorDevice)
from homeassistant.const import (
ATTR_ENTITY_ID, ATTR_FRIENDLY_NAME, CONF_DEVICE_CLASS, CONF_ENTITY_ID,
CONF_FRIENDLY_NAME, STATE_UNKNOWN)
CONF_FRIENDLY_NAME, STATE_UNKNOWN, CONF_SENSORS)
from homeassistant.core import callback
import homeassistant.helpers.config_validation as cv
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.15.2']
REQUIREMENTS = ['numpy==1.15.3']

_LOGGER = logging.getLogger(__name__)

Expand All @@ -38,7 +38,6 @@
CONF_MAX_SAMPLES = 'max_samples'
CONF_MIN_GRADIENT = 'min_gradient'
CONF_SAMPLE_DURATION = 'sample_duration'
CONF_SENSORS = 'sensors'

SENSOR_SCHEMA = vol.Schema({
vol.Required(CONF_ENTITY_ID): cv.entity_id,
Expand Down Expand Up @@ -78,9 +77,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
)
if not sensors:
_LOGGER.error("No sensors added")
return False
return
add_entities(sensors)
return True


class SensorTrend(BinarySensorDevice):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/image_processing/opencv.py
Expand Up @@ -16,7 +16,7 @@
from homeassistant.core import split_entity_id
import homeassistant.helpers.config_validation as cv

REQUIREMENTS = ['numpy==1.15.2']
REQUIREMENTS = ['numpy==1.15.3']

_LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -662,7 +662,7 @@ nuheat==0.3.0

# homeassistant.components.binary_sensor.trend
# homeassistant.components.image_processing.opencv
numpy==1.15.2
numpy==1.15.3

# homeassistant.components.google
oauth2client==4.0.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Expand Up @@ -118,7 +118,7 @@ mficlient==0.3.0

# homeassistant.components.binary_sensor.trend
# homeassistant.components.image_processing.opencv
numpy==1.15.2
numpy==1.15.3

# homeassistant.components.mqtt
# homeassistant.components.shiftr
Expand Down

0 comments on commit 714d44c

Please sign in to comment.