From 466d3a5ef82ca73c359f1bbb18b2a5854ccdb217 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Sun, 11 Nov 2018 11:44:41 -0500 Subject: [PATCH 01/11] catch key error when saving image (#18365) --- homeassistant/components/image_processing/tensorflow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/image_processing/tensorflow.py b/homeassistant/components/image_processing/tensorflow.py index a2cd997bb76..2d06dbbcf34 100644 --- a/homeassistant/components/image_processing/tensorflow.py +++ b/homeassistant/components/image_processing/tensorflow.py @@ -246,7 +246,8 @@ class TensorFlowImageProcessor(ImageProcessingEntity): for category, values in matches.items(): # 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()) draw_box(draw, self._category_areas[category], img_width, img_height, label, (0, 255, 0)) From 6bcba1fbeab1e02296ae361a8c68f3a379d00033 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Sun, 11 Nov 2018 17:46:28 +0100 Subject: [PATCH 02/11] Fix hangouts notify (#18372) * Remove notify schema from hangouts platform * Notify platforms shouldn't overwrite the notify component service schema. That has no effect. * Fix hangouts service data key value --- homeassistant/components/notify/hangouts.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/notify/hangouts.py b/homeassistant/components/notify/hangouts.py index 01f98146f4c..7261663b99f 100644 --- a/homeassistant/components/notify/hangouts.py +++ b/homeassistant/components/notify/hangouts.py @@ -9,13 +9,12 @@ import logging import voluptuous as vol from homeassistant.components.notify import (ATTR_TARGET, PLATFORM_SCHEMA, - NOTIFY_SERVICE_SCHEMA, BaseNotificationService, ATTR_MESSAGE, ATTR_DATA) from homeassistant.components.hangouts.const \ - import (DOMAIN, SERVICE_SEND_MESSAGE, MESSAGE_DATA_SCHEMA, - TARGETS_SCHEMA, CONF_DEFAULT_CONVERSATIONS) + import (DOMAIN, SERVICE_SEND_MESSAGE, TARGETS_SCHEMA, + CONF_DEFAULT_CONVERSATIONS) _LOGGER = logging.getLogger(__name__) @@ -25,11 +24,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ 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): """Get the Hangouts notification service.""" @@ -61,8 +55,9 @@ class HangoutsNotificationService(BaseNotificationService): service_data = { ATTR_TARGET: target_conversations, ATTR_MESSAGE: messages, - ATTR_DATA: kwargs[ATTR_DATA] } + if kwargs[ATTR_DATA]: + service_data[ATTR_DATA] = kwargs[ATTR_DATA] return self.hass.services.call( DOMAIN, SERVICE_SEND_MESSAGE, service_data=service_data) From 2aa2233d9b6212a75c95528bc931180cf5fefcce Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Sun, 11 Nov 2018 17:15:58 +0100 Subject: [PATCH 03/11] Fix including from sub dir (#18378) The include path is now always relative to the root of the config dir. --- homeassistant/util/ruamel_yaml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/util/ruamel_yaml.py b/homeassistant/util/ruamel_yaml.py index eb3e935c6ce..8211252a516 100644 --- a/homeassistant/util/ruamel_yaml.py +++ b/homeassistant/util/ruamel_yaml.py @@ -80,7 +80,8 @@ def load_yaml(fname: str, round_trip: bool = False) -> JSON_TYPE: yaml = YAML(typ='rt') yaml.preserve_quotes = True else: - ExtSafeConstructor.name = fname + if not hasattr(ExtSafeConstructor, 'name'): + ExtSafeConstructor.name = fname yaml = YAML(typ='safe') yaml.Constructor = ExtSafeConstructor From b8ddbc3fdb03f395feefd1e1a9f62afe7256aeaf Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Sun, 11 Nov 2018 16:55:45 -0500 Subject: [PATCH 04/11] Fix default value for optional Sense configuration parameter (#18379) --- homeassistant/components/sense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sense.py b/homeassistant/components/sense.py index 3792e10e761..6e9204b80e1 100644 --- a/homeassistant/components/sense.py +++ b/homeassistant/components/sense.py @@ -27,7 +27,7 @@ CONFIG_SCHEMA = vol.Schema({ DOMAIN: vol.Schema({ vol.Required(CONF_EMAIL): 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) From 7659c33439ca401082e6a98252e3a3c320bcf6b7 Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Mon, 12 Nov 2018 20:28:00 +0000 Subject: [PATCH 05/11] cancel off_delay action (#18389) --- homeassistant/components/binary_sensor/mqtt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/binary_sensor/mqtt.py b/homeassistant/components/binary_sensor/mqtt.py index db9ad585999..7f164ae48d7 100644 --- a/homeassistant/components/binary_sensor/mqtt.py +++ b/homeassistant/components/binary_sensor/mqtt.py @@ -155,6 +155,7 @@ class MqttBinarySensor(MqttAvailability, MqttDiscoveryUpdate, if self._delay_listener is not None: self._delay_listener() + self._delay_listener = None if (self._state and self._off_delay is not None): self._delay_listener = evt.async_call_later( From 43271ca0f7ff5d9ceaf337a9a7cb344c4f14ac4e Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 15 Nov 2018 14:01:02 +0100 Subject: [PATCH 06/11] Bump aioasuswrt to 1.1.6 --- homeassistant/components/device_tracker/asuswrt.py | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/device_tracker/asuswrt.py b/homeassistant/components/device_tracker/asuswrt.py index 561d41562de..0e8e9bfe98f 100644 --- a/homeassistant/components/device_tracker/asuswrt.py +++ b/homeassistant/components/device_tracker/asuswrt.py @@ -15,7 +15,7 @@ from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_PORT, CONF_MODE, CONF_PROTOCOL) -REQUIREMENTS = ['aioasuswrt==1.1.2'] +REQUIREMENTS = ['aioasuswrt==1.1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 411fbae9911..25fafbe1d55 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -86,7 +86,7 @@ abodepy==0.14.0 afsapi==0.0.4 # homeassistant.components.device_tracker.asuswrt -aioasuswrt==1.1.2 +aioasuswrt==1.1.6 # homeassistant.components.device_tracker.automatic aioautomatic==0.6.5 From b5d4e18880fb9de0ec56def8eaf893ecec20be5d Mon Sep 17 00:00:00 2001 From: Pawel Date: Mon, 12 Nov 2018 20:46:00 +0100 Subject: [PATCH 07/11] Changed checking of cover state closed from 0 to closed_position variable. (#18407) Change error message to avoid expression "get_position_topic". --- homeassistant/components/cover/mqtt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/cover/mqtt.py b/homeassistant/components/cover/mqtt.py index 8cc80c52bc5..235b28b5be2 100644 --- a/homeassistant/components/cover/mqtt.py +++ b/homeassistant/components/cover/mqtt.py @@ -87,7 +87,7 @@ def validate_options(value): if (CONF_SET_POSITION_TOPIC in value and CONF_GET_POSITION_TOPIC not in value): 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 @@ -287,7 +287,7 @@ class MqttCover(MqttAvailability, MqttDiscoveryUpdate, MqttEntityDeviceInfo, float(payload), COVER_PAYLOAD) if 0 <= percentage_payload <= 100: self._position = percentage_payload - self._state = self._position == 0 + self._state = self._position == self._position_closed else: _LOGGER.warning( "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, position, self._qos, self._retain) if self._optimistic: - self._state = percentage_position == 0 + self._state = percentage_position == self._position_closed self._position = percentage_position self.async_schedule_update_ha_state() From f36b94b37668fa144c82eb5c324b3b169da8030b Mon Sep 17 00:00:00 2001 From: Fredrik Erlandsson Date: Mon, 12 Nov 2018 22:53:50 +0100 Subject: [PATCH 08/11] updated pydaikin version (#18413) --- homeassistant/components/climate/daikin.py | 2 +- homeassistant/components/daikin.py | 8 ++------ requirements_all.txt | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/climate/daikin.py b/homeassistant/components/climate/daikin.py index 2d4e01aaee9..63b8f585c7e 100644 --- a/homeassistant/components/climate/daikin.py +++ b/homeassistant/components/climate/daikin.py @@ -22,7 +22,7 @@ from homeassistant.const import ( ATTR_TEMPERATURE, CONF_HOST, CONF_NAME, TEMP_CELSIUS) import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['pydaikin==0.4'] +REQUIREMENTS = ['pydaikin==0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/daikin.py b/homeassistant/components/daikin.py index 8983ecf82d8..20da244a698 100644 --- a/homeassistant/components/daikin.py +++ b/homeassistant/components/daikin.py @@ -19,12 +19,11 @@ from homeassistant.helpers import discovery from homeassistant.helpers.discovery import load_platform from homeassistant.util import Throttle -REQUIREMENTS = ['pydaikin==0.4'] +REQUIREMENTS = ['pydaikin==0.6'] _LOGGER = logging.getLogger(__name__) DOMAIN = 'daikin' -HTTP_RESOURCES = ['aircon/get_sensor_info', 'aircon/get_control_info'] ATTR_TARGET_TEMPERATURE = 'target_temperature' ATTR_INSIDE_TEMPERATURE = 'inside_temperature' @@ -128,10 +127,7 @@ class DaikinApi: def update(self, **kwargs): """Pull the latest data from Daikin.""" try: - for resource in HTTP_RESOURCES: - self.device.values.update( - self.device.get_resource(resource) - ) + self.device.update_status() except timeout: _LOGGER.warning( "Connection failed for %s", self.ip_address diff --git a/requirements_all.txt b/requirements_all.txt index 25fafbe1d55..9759cbbf530 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -865,7 +865,7 @@ pycsspeechtts==1.0.2 # homeassistant.components.daikin # homeassistant.components.climate.daikin -pydaikin==0.4 +pydaikin==0.6 # homeassistant.components.deconz pydeconz==47 From 69d358fa08652e44dc37974bb735cfdc40ccf1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ab=C3=ADlio=20Costa?= Date: Tue, 13 Nov 2018 13:24:30 +0000 Subject: [PATCH 09/11] edp_redy: increase UPDATE_INTERVAL (#18429) The server was getting a bit mad sometimes and would lock users out. --- homeassistant/components/edp_redy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/edp_redy.py b/homeassistant/components/edp_redy.py index caf4ad41d99..210d7eb6afc 100644 --- a/homeassistant/components/edp_redy.py +++ b/homeassistant/components/edp_redy.py @@ -24,7 +24,7 @@ _LOGGER = logging.getLogger(__name__) DOMAIN = 'edp_redy' EDP_REDY = 'edp_redy' DATA_UPDATE_TOPIC = '{0}_data_update'.format(DOMAIN) -UPDATE_INTERVAL = 30 +UPDATE_INTERVAL = 60 REQUIREMENTS = ['edp_redy==0.0.2'] From 5ffcb99b4f9dfbfc948796d240a6f523a2642ccf Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 13 Nov 2018 23:43:01 +0100 Subject: [PATCH 10/11] Update pyozw to 0.1.1 (#18436) * Update pyozw to 0.1.1 * Update requirements_all.txt --- homeassistant/components/zwave/__init__.py | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py index a27d2112dcd..87a955f6f20 100644 --- a/homeassistant/components/zwave/__init__.py +++ b/homeassistant/components/zwave/__init__.py @@ -42,7 +42,7 @@ from .discovery_schemas import DISCOVERY_SCHEMAS from .util import (check_node_schema, check_value_schema, node_name, 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__) diff --git a/requirements_all.txt b/requirements_all.txt index 9759cbbf530..539f89cbdd1 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -479,7 +479,7 @@ holidays==0.9.8 home-assistant-frontend==20181103.3 # homeassistant.components.zwave -homeassistant-pyozw==0.1.0 +homeassistant-pyozw==0.1.1 # homeassistant.components.homekit_controller # homekit==0.10 From b40b934029ef5df82373c6aa4a284bc2e449e850 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 15 Nov 2018 14:01:21 +0100 Subject: [PATCH 11/11] Bumped version to 0.82.1 --- homeassistant/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/const.py b/homeassistant/const.py index 5bd6b7637ff..9db85f12960 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -2,7 +2,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 82 -PATCH_VERSION = '0' +PATCH_VERSION = '1' __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) REQUIRED_PYTHON_VER = (3, 5, 3)