Upgrade numpy to 1.15.3 (#17796)

This commit is contained in:
Fabian Affolter 2018-10-26 10:35:21 +02:00 committed by GitHub
parent c00da509a1
commit 714d44c503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 8 deletions

View File

@ -15,14 +15,14 @@ from homeassistant.components.binary_sensor import (
BinarySensorDevice) BinarySensorDevice)
from homeassistant.const import ( from homeassistant.const import (
ATTR_ENTITY_ID, ATTR_FRIENDLY_NAME, CONF_DEVICE_CLASS, CONF_ENTITY_ID, 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 from homeassistant.core import callback
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import generate_entity_id from homeassistant.helpers.entity import generate_entity_id
from homeassistant.helpers.event import async_track_state_change from homeassistant.helpers.event import async_track_state_change
from homeassistant.util import utcnow from homeassistant.util import utcnow
REQUIREMENTS = ['numpy==1.15.2'] REQUIREMENTS = ['numpy==1.15.3']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -38,7 +38,6 @@ CONF_INVERT = 'invert'
CONF_MAX_SAMPLES = 'max_samples' CONF_MAX_SAMPLES = 'max_samples'
CONF_MIN_GRADIENT = 'min_gradient' CONF_MIN_GRADIENT = 'min_gradient'
CONF_SAMPLE_DURATION = 'sample_duration' CONF_SAMPLE_DURATION = 'sample_duration'
CONF_SENSORS = 'sensors'
SENSOR_SCHEMA = vol.Schema({ SENSOR_SCHEMA = vol.Schema({
vol.Required(CONF_ENTITY_ID): cv.entity_id, vol.Required(CONF_ENTITY_ID): cv.entity_id,
@ -78,9 +77,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
) )
if not sensors: if not sensors:
_LOGGER.error("No sensors added") _LOGGER.error("No sensors added")
return False return
add_entities(sensors) add_entities(sensors)
return True
class SensorTrend(BinarySensorDevice): class SensorTrend(BinarySensorDevice):

View File

@ -16,7 +16,7 @@ from homeassistant.components.image_processing import (
from homeassistant.core import split_entity_id from homeassistant.core import split_entity_id
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['numpy==1.15.2'] REQUIREMENTS = ['numpy==1.15.3']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -662,7 +662,7 @@ nuheat==0.3.0
# homeassistant.components.binary_sensor.trend # homeassistant.components.binary_sensor.trend
# homeassistant.components.image_processing.opencv # homeassistant.components.image_processing.opencv
numpy==1.15.2 numpy==1.15.3
# homeassistant.components.google # homeassistant.components.google
oauth2client==4.0.0 oauth2client==4.0.0

View File

@ -118,7 +118,7 @@ mficlient==0.3.0
# homeassistant.components.binary_sensor.trend # homeassistant.components.binary_sensor.trend
# homeassistant.components.image_processing.opencv # homeassistant.components.image_processing.opencv
numpy==1.15.2 numpy==1.15.3
# homeassistant.components.mqtt # homeassistant.components.mqtt
# homeassistant.components.shiftr # homeassistant.components.shiftr