From 7401ec96b5ca35e8ec4a623f2e04cdd6fc491a31 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 12 Feb 2017 23:31:04 -0800 Subject: [PATCH 1/9] Version bump to 0.38.3 --- homeassistant/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/const.py b/homeassistant/const.py index 44438fa92d4..9deb3b052d5 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -2,7 +2,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 38 -PATCH_VERSION = '2' +PATCH_VERSION = '3' __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) REQUIRED_PYTHON_VER = (3, 4, 2) From 67d35e6454e939a7691151cda5c805e5c3dc1801 Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 14 Feb 2017 21:59:34 +0200 Subject: [PATCH 2/9] Point-fix zwave getter not to ignore label (#5938) --- homeassistant/components/zwave/__init__.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py index 867a0f96062..69168b23465 100755 --- a/homeassistant/components/zwave/__init__.py +++ b/homeassistant/components/zwave/__init__.py @@ -638,7 +638,6 @@ class ZWaveDeviceEntity(Entity): def _value_handler(self, method=None, class_id=None, index=None, label=None, data=None, member=None, **kwargs): """Get the values for a given command_class with arguments.""" - varname = member if class_id is not None: kwargs[CLASS_ID] = class_id _LOGGER.debug('method=%s, class_id=%s, index=%s, label=%s, data=%s,' @@ -653,16 +652,20 @@ class ZWaveDeviceEntity(Entity): if index is not None and value.index != index: continue if label is not None: + label_found = False for entry in label: - if entry is not None and value.label != entry: - continue + if value.label == entry: + label_found = True + break + if not label_found: + continue if method == 'set': value.data = data return if data is not None and value.data != data: continue if member is not None: - results = getattr(value, varname) + results = getattr(value, member) else: results = value break From ea26aa2c8192e539182f4ad84a93b5e8327c4864 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Sun, 12 Feb 2017 22:34:13 -0500 Subject: [PATCH 3/9] Fixed typos in wink climate (#5936) --- homeassistant/components/climate/wink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/climate/wink.py b/homeassistant/components/climate/wink.py index d4785d4a13e..f2c2551d371 100644 --- a/homeassistant/components/climate/wink.py +++ b/homeassistant/components/climate/wink.py @@ -366,8 +366,8 @@ class WinkAC(WinkDevice, ClimateDevice): if target_temp_low is not None: data[ATTR_TARGET_TEMP_LOW] = self._convert_for_display( self.target_temperature_low) - data["total_consumption"] = self.wink.toatl_consumption() - data["schedule_enabled"] = self.wink.toatl_consumption() + data["total_consumption"] = self.wink.total_consumption() + data["schedule_enabled"] = self.wink.schedule_enabled() return data From 04f3fe0ba3b0f23f4e8ca90ffd5a247f0c7dda2d Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 14 Feb 2017 21:59:34 +0200 Subject: [PATCH 4/9] Point-fix zwave getter not to ignore label (#5938) From bbc5c3a3007284e149b995a74ed4ad4e48d39e75 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Mon, 13 Feb 2017 11:23:28 +0100 Subject: [PATCH 5/9] Fix mysensors platforms version requirement (#5942) * Notify and device tracker platforms require mysensors version 2.0 or greater. --- homeassistant/components/device_tracker/mysensors.py | 2 ++ homeassistant/components/notify/mysensors.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/homeassistant/components/device_tracker/mysensors.py b/homeassistant/components/device_tracker/mysensors.py index 2ba19924089..5bbbee89be3 100644 --- a/homeassistant/components/device_tracker/mysensors.py +++ b/homeassistant/components/device_tracker/mysensors.py @@ -55,6 +55,8 @@ def setup_scanner(hass, config, see, discovery_info=None): gateways = hass.data.get(mysensors.MYSENSORS_GATEWAYS) for gateway in gateways: + if float(gateway.protocol_version) < 2.0: + continue gateway.platform_callbacks.append(mysensors_callback) return True diff --git a/homeassistant/components/notify/mysensors.py b/homeassistant/components/notify/mysensors.py index ad747a7ae93..a2708a51efd 100644 --- a/homeassistant/components/notify/mysensors.py +++ b/homeassistant/components/notify/mysensors.py @@ -19,6 +19,8 @@ def get_service(hass, config, discovery_info=None): return for gateway in gateways: + if float(gateway.protocol_version) < 2.0: + continue pres = gateway.const.Presentation set_req = gateway.const.SetReq map_sv_types = { From 91d2ba609eccfffad540ae539f5895f776f9318d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 Feb 2017 23:04:25 +0100 Subject: [PATCH 6/9] Remove unit of measurement --- homeassistant/components/sensor/moon.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/homeassistant/components/sensor/moon.py b/homeassistant/components/sensor/moon.py index 3b13e625bb4..2de5b613065 100644 --- a/homeassistant/components/sensor/moon.py +++ b/homeassistant/components/sensor/moon.py @@ -62,11 +62,6 @@ class MoonSensor(Entity): else: return 'New moon' - @property - def unit_of_measurement(self): - """Return the unit the value is expressed in.""" - return 'Phase' - @property def icon(self): """Icon to use in the frontend, if any.""" From 9bcc692ff2b1524746fff1305603c9bccf36d3a3 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Mon, 13 Feb 2017 21:08:37 -0500 Subject: [PATCH 7/9] Fix #5979 (#5980) --- homeassistant/components/wink.py | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/wink.py b/homeassistant/components/wink.py index 569def22401..0ef03f54083 100644 --- a/homeassistant/components/wink.py +++ b/homeassistant/components/wink.py @@ -15,7 +15,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['python-wink==1.1.1', 'pubnubsub-handler==1.0.0'] +REQUIREMENTS = ['python-wink==1.1.1', 'pubnubsub-handler==1.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 527e9a17f54..e6103ee4bf5 100755 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -388,7 +388,7 @@ proliphix==0.4.1 psutil==5.1.2 # homeassistant.components.wink -pubnubsub-handler==1.0.0 +pubnubsub-handler==1.0.1 # homeassistant.components.notify.pushbullet pushbullet.py==0.10.0 From b1eb3243bd8e8ff86f8a84e6bded88cf9080dcca Mon Sep 17 00:00:00 2001 From: happyleavesaoc Date: Tue, 14 Feb 2017 04:30:16 -0500 Subject: [PATCH 8/9] timeMin fix (#5983) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- homeassistant/components/calendar/google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/calendar/google.py b/homeassistant/components/calendar/google.py index 022d39b602b..8f9de90a1b1 100644 --- a/homeassistant/components/calendar/google.py +++ b/homeassistant/components/calendar/google.py @@ -66,7 +66,7 @@ class GoogleCalendarData(object): """Get the latest data.""" service = self.calendar_service.get() params = dict(DEFAULT_GOOGLE_SEARCH_PARAMS) - params['timeMin'] = dt.start_of_local_day().isoformat('T') + params['timeMin'] = dt.now().isoformat('T') params['calendarId'] = self.calendar_id if self.search: params['q'] = self.search From d6f525a23ffaa1354a407af25c339c105484f643 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 14 Feb 2017 20:59:54 +0100 Subject: [PATCH 9/9] Bugfix sonos favorite_source after lost connection (#5996) --- homeassistant/components/media_player/sonos.py | 1 - 1 file changed, 1 deletion(-) diff --git a/homeassistant/components/media_player/sonos.py b/homeassistant/components/media_player/sonos.py index e052cfcaea3..d6f723dcfac 100644 --- a/homeassistant/components/media_player/sonos.py +++ b/homeassistant/components/media_player/sonos.py @@ -365,7 +365,6 @@ class SonosDevice(MediaPlayerDevice): self._support_pause = False self._is_playing_tv = False self._is_playing_line_in = False - self._favorite_sources = None self._source_name = None self._last_avtransport_event = None return