Merge pull request #18481 from home-assistant/rc

0.82.1
This commit is contained in:
Paulus Schoutsen 2018-11-15 14:25:56 +01:00 committed by GitHub
commit 7cb7c76a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 23 additions and 29 deletions

View File

@ -155,6 +155,7 @@ class MqttBinarySensor(MqttAvailability, MqttDiscoveryUpdate,
if self._delay_listener is not None: if self._delay_listener is not None:
self._delay_listener() self._delay_listener()
self._delay_listener = None
if (self._state and self._off_delay is not None): if (self._state and self._off_delay is not None):
self._delay_listener = evt.async_call_later( self._delay_listener = evt.async_call_later(

View File

@ -22,7 +22,7 @@ from homeassistant.const import (
ATTR_TEMPERATURE, CONF_HOST, CONF_NAME, TEMP_CELSIUS) ATTR_TEMPERATURE, CONF_HOST, CONF_NAME, TEMP_CELSIUS)
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pydaikin==0.4'] REQUIREMENTS = ['pydaikin==0.6']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -87,7 +87,7 @@ def validate_options(value):
if (CONF_SET_POSITION_TOPIC in value and if (CONF_SET_POSITION_TOPIC in value and
CONF_GET_POSITION_TOPIC not in value): CONF_GET_POSITION_TOPIC not in value):
raise vol.Invalid( raise vol.Invalid(
"Set position topic must be set together with get position topic.") "set_position_topic must be set together with position_topic.")
return value return value
@ -287,7 +287,7 @@ class MqttCover(MqttAvailability, MqttDiscoveryUpdate, MqttEntityDeviceInfo,
float(payload), COVER_PAYLOAD) float(payload), COVER_PAYLOAD)
if 0 <= percentage_payload <= 100: if 0 <= percentage_payload <= 100:
self._position = percentage_payload self._position = percentage_payload
self._state = self._position == 0 self._state = self._position == self._position_closed
else: else:
_LOGGER.warning( _LOGGER.warning(
"Payload is not integer within range: %s", "Payload is not integer within range: %s",
@ -451,7 +451,7 @@ class MqttCover(MqttAvailability, MqttDiscoveryUpdate, MqttEntityDeviceInfo,
mqtt.async_publish(self.hass, self._set_position_topic, mqtt.async_publish(self.hass, self._set_position_topic,
position, self._qos, self._retain) position, self._qos, self._retain)
if self._optimistic: if self._optimistic:
self._state = percentage_position == 0 self._state = percentage_position == self._position_closed
self._position = percentage_position self._position = percentage_position
self.async_schedule_update_ha_state() self.async_schedule_update_ha_state()

View File

@ -19,12 +19,11 @@ from homeassistant.helpers import discovery
from homeassistant.helpers.discovery import load_platform from homeassistant.helpers.discovery import load_platform
from homeassistant.util import Throttle from homeassistant.util import Throttle
REQUIREMENTS = ['pydaikin==0.4'] REQUIREMENTS = ['pydaikin==0.6']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
DOMAIN = 'daikin' DOMAIN = 'daikin'
HTTP_RESOURCES = ['aircon/get_sensor_info', 'aircon/get_control_info']
ATTR_TARGET_TEMPERATURE = 'target_temperature' ATTR_TARGET_TEMPERATURE = 'target_temperature'
ATTR_INSIDE_TEMPERATURE = 'inside_temperature' ATTR_INSIDE_TEMPERATURE = 'inside_temperature'
@ -128,10 +127,7 @@ class DaikinApi:
def update(self, **kwargs): def update(self, **kwargs):
"""Pull the latest data from Daikin.""" """Pull the latest data from Daikin."""
try: try:
for resource in HTTP_RESOURCES: self.device.update_status()
self.device.values.update(
self.device.get_resource(resource)
)
except timeout: except timeout:
_LOGGER.warning( _LOGGER.warning(
"Connection failed for %s", self.ip_address "Connection failed for %s", self.ip_address

View File

@ -15,7 +15,7 @@ from homeassistant.const import (
CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_PORT, CONF_MODE, CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_PORT, CONF_MODE,
CONF_PROTOCOL) CONF_PROTOCOL)
REQUIREMENTS = ['aioasuswrt==1.1.2'] REQUIREMENTS = ['aioasuswrt==1.1.6']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -24,7 +24,7 @@ _LOGGER = logging.getLogger(__name__)
DOMAIN = 'edp_redy' DOMAIN = 'edp_redy'
EDP_REDY = 'edp_redy' EDP_REDY = 'edp_redy'
DATA_UPDATE_TOPIC = '{0}_data_update'.format(DOMAIN) DATA_UPDATE_TOPIC = '{0}_data_update'.format(DOMAIN)
UPDATE_INTERVAL = 30 UPDATE_INTERVAL = 60
REQUIREMENTS = ['edp_redy==0.0.2'] REQUIREMENTS = ['edp_redy==0.0.2']

View File

@ -246,7 +246,8 @@ class TensorFlowImageProcessor(ImageProcessingEntity):
for category, values in matches.items(): for category, values in matches.items():
# Draw custom category regions/areas # Draw custom category regions/areas
if self._category_areas[category] != [0, 0, 1, 1]: if (category in self._category_areas
and self._category_areas[category] != [0, 0, 1, 1]):
label = "{} Detection Area".format(category.capitalize()) label = "{} Detection Area".format(category.capitalize())
draw_box(draw, self._category_areas[category], img_width, draw_box(draw, self._category_areas[category], img_width,
img_height, label, (0, 255, 0)) img_height, label, (0, 255, 0))

View File

@ -9,13 +9,12 @@ import logging
import voluptuous as vol import voluptuous as vol
from homeassistant.components.notify import (ATTR_TARGET, PLATFORM_SCHEMA, from homeassistant.components.notify import (ATTR_TARGET, PLATFORM_SCHEMA,
NOTIFY_SERVICE_SCHEMA,
BaseNotificationService, BaseNotificationService,
ATTR_MESSAGE, ATTR_DATA) ATTR_MESSAGE, ATTR_DATA)
from homeassistant.components.hangouts.const \ from homeassistant.components.hangouts.const \
import (DOMAIN, SERVICE_SEND_MESSAGE, MESSAGE_DATA_SCHEMA, import (DOMAIN, SERVICE_SEND_MESSAGE, TARGETS_SCHEMA,
TARGETS_SCHEMA, CONF_DEFAULT_CONVERSATIONS) CONF_DEFAULT_CONVERSATIONS)
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -25,11 +24,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_DEFAULT_CONVERSATIONS): [TARGETS_SCHEMA] vol.Required(CONF_DEFAULT_CONVERSATIONS): [TARGETS_SCHEMA]
}) })
NOTIFY_SERVICE_SCHEMA = NOTIFY_SERVICE_SCHEMA.extend({
vol.Optional(ATTR_TARGET): [TARGETS_SCHEMA],
vol.Optional(ATTR_DATA, default={}): MESSAGE_DATA_SCHEMA
})
def get_service(hass, config, discovery_info=None): def get_service(hass, config, discovery_info=None):
"""Get the Hangouts notification service.""" """Get the Hangouts notification service."""
@ -61,8 +55,9 @@ class HangoutsNotificationService(BaseNotificationService):
service_data = { service_data = {
ATTR_TARGET: target_conversations, ATTR_TARGET: target_conversations,
ATTR_MESSAGE: messages, ATTR_MESSAGE: messages,
ATTR_DATA: kwargs[ATTR_DATA]
} }
if kwargs[ATTR_DATA]:
service_data[ATTR_DATA] = kwargs[ATTR_DATA]
return self.hass.services.call( return self.hass.services.call(
DOMAIN, SERVICE_SEND_MESSAGE, service_data=service_data) DOMAIN, SERVICE_SEND_MESSAGE, service_data=service_data)

View File

@ -27,7 +27,7 @@ CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({ DOMAIN: vol.Schema({
vol.Required(CONF_EMAIL): cv.string, vol.Required(CONF_EMAIL): cv.string,
vol.Required(CONF_PASSWORD): cv.string, vol.Required(CONF_PASSWORD): cv.string,
vol.Optional(CONF_TIMEOUT, DEFAULT_TIMEOUT): cv.positive_int, vol.Optional(CONF_TIMEOUT, default=DEFAULT_TIMEOUT): cv.positive_int,
}) })
}, extra=vol.ALLOW_EXTRA) }, extra=vol.ALLOW_EXTRA)

View File

@ -42,7 +42,7 @@ from .discovery_schemas import DISCOVERY_SCHEMAS
from .util import (check_node_schema, check_value_schema, node_name, from .util import (check_node_schema, check_value_schema, node_name,
check_has_unique_id, is_node_parsed) check_has_unique_id, is_node_parsed)
REQUIREMENTS = ['pydispatcher==2.0.5', 'homeassistant-pyozw==0.1.0'] REQUIREMENTS = ['pydispatcher==2.0.5', 'homeassistant-pyozw==0.1.1']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -2,7 +2,7 @@
"""Constants used by Home Assistant components.""" """Constants used by Home Assistant components."""
MAJOR_VERSION = 0 MAJOR_VERSION = 0
MINOR_VERSION = 82 MINOR_VERSION = 82
PATCH_VERSION = '0' PATCH_VERSION = '1'
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
REQUIRED_PYTHON_VER = (3, 5, 3) REQUIRED_PYTHON_VER = (3, 5, 3)

View File

@ -80,7 +80,8 @@ def load_yaml(fname: str, round_trip: bool = False) -> JSON_TYPE:
yaml = YAML(typ='rt') yaml = YAML(typ='rt')
yaml.preserve_quotes = True yaml.preserve_quotes = True
else: else:
ExtSafeConstructor.name = fname if not hasattr(ExtSafeConstructor, 'name'):
ExtSafeConstructor.name = fname
yaml = YAML(typ='safe') yaml = YAML(typ='safe')
yaml.Constructor = ExtSafeConstructor yaml.Constructor = ExtSafeConstructor

View File

@ -86,7 +86,7 @@ abodepy==0.14.0
afsapi==0.0.4 afsapi==0.0.4
# homeassistant.components.device_tracker.asuswrt # homeassistant.components.device_tracker.asuswrt
aioasuswrt==1.1.2 aioasuswrt==1.1.6
# homeassistant.components.device_tracker.automatic # homeassistant.components.device_tracker.automatic
aioautomatic==0.6.5 aioautomatic==0.6.5
@ -479,7 +479,7 @@ holidays==0.9.8
home-assistant-frontend==20181103.3 home-assistant-frontend==20181103.3
# homeassistant.components.zwave # homeassistant.components.zwave
homeassistant-pyozw==0.1.0 homeassistant-pyozw==0.1.1
# homeassistant.components.homekit_controller # homeassistant.components.homekit_controller
# homekit==0.10 # homekit==0.10
@ -865,7 +865,7 @@ pycsspeechtts==1.0.2
# homeassistant.components.daikin # homeassistant.components.daikin
# homeassistant.components.climate.daikin # homeassistant.components.climate.daikin
pydaikin==0.4 pydaikin==0.6
# homeassistant.components.deconz # homeassistant.components.deconz
pydeconz==47 pydeconz==47