From fd6373c7aa85020b6c2d560c32c4a54ef159dba6 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 5 Dec 2017 22:10:47 -0800 Subject: [PATCH 1/7] Version bump to 0.59.2 --- homeassistant/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/const.py b/homeassistant/const.py index ad7879fc0f50fc..3f578a251cf3a4 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -2,7 +2,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 59 -PATCH_VERSION = '1' +PATCH_VERSION = '2' __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) REQUIRED_PYTHON_VER = (3, 4, 2) From 22c36f0ad324e9408335a65c5c26d53359e280b0 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 6 Dec 2017 08:09:41 +0200 Subject: [PATCH 2/7] Require FF43 for latest js (#10941) * Require FF43 for latest js `Array.prototype.includes` added in Firefox 43 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes * Update __init__.py --- homeassistant/components/frontend/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index e1121fd0c4e686..56af5e07123ae1 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -583,9 +583,9 @@ def _is_latest(js_option, request): family_min_version = { 'Chrome': 50, # Probably can reduce this - 'Firefox': 41, # Destructuring added in 41 + 'Firefox': 43, # Array.protopype.includes added in 43 'Opera': 40, # Probably can reduce this - 'Edge': 14, # Maybe can reduce this + 'Edge': 14, # Array.protopype.includes added in 14 'Safari': 10, # many features not supported by 9 } version = family_min_version.get(useragent.browser.family) From bdb7a29586e8a6c67011f1f2852b8a669bdcff58 Mon Sep 17 00:00:00 2001 From: Mateusz Drab Date: Mon, 4 Dec 2017 17:58:52 +0000 Subject: [PATCH 3/7] Fix linksys_ap.py by inheriting DeviceScanner (#10947) As per issue #8638, the class wasn't inheriting from DeviceScanner, this commit patches it up. --- homeassistant/components/device_tracker/linksys_ap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/device_tracker/linksys_ap.py b/homeassistant/components/device_tracker/linksys_ap.py index 196235f32f4f62..20dc9052e116a3 100644 --- a/homeassistant/components/device_tracker/linksys_ap.py +++ b/homeassistant/components/device_tracker/linksys_ap.py @@ -11,7 +11,8 @@ import voluptuous as vol import homeassistant.helpers.config_validation as cv -from homeassistant.components.device_tracker import DOMAIN, PLATFORM_SCHEMA +from homeassistant.components.device_tracker import ( + DOMAIN, PLATFORM_SCHEMA, DeviceScanner) from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_VERIFY_SSL) @@ -38,7 +39,7 @@ def get_scanner(hass, config): return None -class LinksysAPDeviceScanner(object): +class LinksysAPDeviceScanner(DeviceScanner): """This class queries a Linksys Access Point.""" def __init__(self, config): From f9743c29cddb1705bac2936ae015db7eba43fc25 Mon Sep 17 00:00:00 2001 From: Erik Eriksson Date: Mon, 4 Dec 2017 17:26:07 +0100 Subject: [PATCH 4/7] Upgrade tellduslive library version (closes https://github.com/home-assistant/home-assistant/issues/10922) (#10950) --- homeassistant/components/tellduslive.py | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/tellduslive.py b/homeassistant/components/tellduslive.py index ba7c1afd286b35..28bf65bc4c5059 100644 --- a/homeassistant/components/tellduslive.py +++ b/homeassistant/components/tellduslive.py @@ -24,7 +24,7 @@ DOMAIN = 'tellduslive' -REQUIREMENTS = ['tellduslive==0.10.3'] +REQUIREMENTS = ['tellduslive==0.10.4'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 88cdb4bcdfac1e..3385c1f662a6c8 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1063,7 +1063,7 @@ tellcore-net==0.3 tellcore-py==1.1.2 # homeassistant.components.tellduslive -tellduslive==0.10.3 +tellduslive==0.10.4 # homeassistant.components.sensor.temper temperusb==1.5.3 From 63d673461248d573730954851783f35166f5ff81 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Wed, 6 Dec 2017 01:07:59 -0500 Subject: [PATCH 5/7] Allow chime to work for wink siren/chime (#10961) * Allow Wink siren/chimes to work * Updated requirements_all.txt --- homeassistant/components/wink/__init__.py | 16 +++++++++------- requirements_all.txt | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/wink/__init__.py b/homeassistant/components/wink/__init__.py index 426893ec306794..18e14b2e91286c 100644 --- a/homeassistant/components/wink/__init__.py +++ b/homeassistant/components/wink/__init__.py @@ -28,7 +28,7 @@ from homeassistant.config import load_yaml_config_file from homeassistant.util.json import load_json, save_json -REQUIREMENTS = ['python-wink==1.7.0', 'pubnubsub-handler==1.0.2'] +REQUIREMENTS = ['python-wink==1.7.1', 'pubnubsub-handler==1.0.2'] _LOGGER = logging.getLogger(__name__) @@ -460,10 +460,11 @@ def service_handle(service): sirens_to_set.append(siren) for siren in sirens_to_set: + _man = siren.wink.device_manufacturer() if (service.service != SERVICE_SET_AUTO_SHUTOFF and service.service != SERVICE_ENABLE_SIREN and - siren.wink.device_manufacturer() != 'dome'): - _LOGGER.error("Service only valid for Dome sirens.") + (_man != 'dome' and _man != 'wink')): + _LOGGER.error("Service only valid for Dome or Wink sirens.") return if service.service == SERVICE_ENABLE_SIREN: @@ -494,10 +495,11 @@ def service_handle(service): component = EntityComponent(_LOGGER, DOMAIN, hass) sirens = [] - has_dome_siren = False + has_dome_or_wink_siren = False for siren in pywink.get_sirens(): - if siren.device_manufacturer() == "dome": - has_dome_siren = True + _man = siren.device_manufacturer() + if _man == "dome" or _man == "wink": + has_dome_or_wink_siren = True _id = siren.object_id() + siren.name() if _id not in hass.data[DOMAIN]['unique_ids']: sirens.append(WinkSirenDevice(siren, hass)) @@ -514,7 +516,7 @@ def service_handle(service): descriptions.get(SERVICE_ENABLE_SIREN), schema=ENABLED_SIREN_SCHEMA) - if has_dome_siren: + if has_dome_or_wink_siren: hass.services.register(DOMAIN, SERVICE_SET_SIREN_TONE, service_handle, diff --git a/requirements_all.txt b/requirements_all.txt index 3385c1f662a6c8..8b78f254bd8499 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -883,7 +883,7 @@ python-velbus==2.0.11 python-vlc==1.1.2 # homeassistant.components.wink -python-wink==1.7.0 +python-wink==1.7.1 # homeassistant.components.sensor.swiss_public_transport python_opendata_transport==0.0.3 From 3f764f19815f8f3df406ec1b2f13b0fb9ff08e91 Mon Sep 17 00:00:00 2001 From: "Craig J. Ward" Date: Tue, 5 Dec 2017 03:47:48 -0600 Subject: [PATCH 6/7] Reload closest store on api menu request (#10962) * reload closest store on api request * revert change from debugging --- homeassistant/components/dominos.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/dominos.py b/homeassistant/components/dominos.py index 633ea1b0c5e9cc..0d6645f37c11a0 100644 --- a/homeassistant/components/dominos.py +++ b/homeassistant/components/dominos.py @@ -136,6 +136,7 @@ def update_closest_store(self): def get_menu(self): """Return the products from the closest stores menu.""" + self.update_closest_store() if self.closest_store is None: _LOGGER.warning('Cannot get menu. Store may be closed') return [] From 56c694b477936c0ad86b4e8e7a63d5e4f455e4a3 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 5 Dec 2017 22:08:09 -0800 Subject: [PATCH 7/7] Revert pychromecast update (#10989) * Revert pychromecast update * Update cast.py --- homeassistant/components/media_player/cast.py | 4 +++- requirements_all.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/media_player/cast.py b/homeassistant/components/media_player/cast.py index ca3da7ae165fe7..6ae44495e3e22b 100644 --- a/homeassistant/components/media_player/cast.py +++ b/homeassistant/components/media_player/cast.py @@ -20,7 +20,9 @@ import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util -REQUIREMENTS = ['pychromecast==1.0.2'] +# Do not upgrade to 1.0.2, it breaks a bunch of stuff +# https://github.com/home-assistant/home-assistant/issues/10926 +REQUIREMENTS = ['pychromecast==0.8.2'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 8b78f254bd8499..56c78e1c70ded9 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -623,7 +623,7 @@ pybbox==0.0.5-alpha # pybluez==0.22 # homeassistant.components.media_player.cast -pychromecast==1.0.2 +pychromecast==0.8.2 # homeassistant.components.media_player.cmus pycmus==0.1.0