diff --git a/homeassistant/components/calendar/google.py b/homeassistant/components/calendar/google.py index 022d39b602b1fdb7146fd8eb2d2bf54f25ee1ef5..8f9de90a1b1343b9a3373e674ee85ea6942b6ba4 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 diff --git a/homeassistant/components/climate/wink.py b/homeassistant/components/climate/wink.py index d4785d4a13e45e7d14188ccfaec04fd92796da59..f2c2551d371a08b206097c6b0701d939b252cd1c 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 diff --git a/homeassistant/components/device_tracker/mysensors.py b/homeassistant/components/device_tracker/mysensors.py index 2ba19924089363afecde6f1007df3f828edca8a0..5bbbee89be346c7ae9ebc9ac50f9d3ab88d6aacb 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/media_player/sonos.py b/homeassistant/components/media_player/sonos.py index e052cfcaea393f2b6220666c736f79a84ec8d6a9..d6f723dcfac52af189ee89fbf23448fc71c145c6 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 diff --git a/homeassistant/components/notify/mysensors.py b/homeassistant/components/notify/mysensors.py index ad747a7ae934d4c1f91b9584e2ab2fdb2dd37daf..a2708a51efd243782d554bd0caff7efafd172d7d 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 = { diff --git a/homeassistant/components/sensor/moon.py b/homeassistant/components/sensor/moon.py index 3b13e625bb4b9864117707ee08a2dea85c4f9d0c..2de5b613065330cf37d4bc128028a4494f7d23d2 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.""" diff --git a/homeassistant/components/wink.py b/homeassistant/components/wink.py index 569def224016c204ea02fc46e702fa32e3a0b2cb..0ef03f5408363437dd628cc6dfe8dcbb822053c4 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/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py index 867a0f9606257aae77576d78617d9cbf8bb83664..69168b23465956be2c242a71dc1eafb54ce3d3d5 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 diff --git a/homeassistant/const.py b/homeassistant/const.py index 44438fa92d443dd0cf3bfc7c26818a301dbdfaae..9deb3b052d5027f47a617430162999a581bfc2b0 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) diff --git a/requirements_all.txt b/requirements_all.txt index 527e9a17f549c4620d48280dfc1cdd5337a480ae..e6103ee4bf59d8450deb453f3f53cd32e213d897 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