From 73cd902857b376f563883f940b905e5abc9e0383 Mon Sep 17 00:00:00 2001 From: Patrik Date: Sun, 5 Nov 2017 17:43:45 +0100 Subject: [PATCH 1/3] Fix tradfri problem with brightness (#10359) * Fix problem with brightness * Fix typo * Typo --- homeassistant/components/light/tradfri.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/light/tradfri.py b/homeassistant/components/light/tradfri.py index c71ca60ee03..63441e6d8af 100644 --- a/homeassistant/components/light/tradfri.py +++ b/homeassistant/components/light/tradfri.py @@ -108,6 +108,9 @@ class TradfriGroup(Light): keys['transition_time'] = int(kwargs[ATTR_TRANSITION]) * 10 if ATTR_BRIGHTNESS in kwargs: + if kwargs[ATTR_BRIGHTNESS] == 255: + kwargs[ATTR_BRIGHTNESS] = 254 + self.hass.async_add_job(self._api( self._group.set_dimmer(kwargs[ATTR_BRIGHTNESS], **keys))) else: @@ -264,6 +267,9 @@ class TradfriLight(Light): keys['transition_time'] = int(kwargs[ATTR_TRANSITION]) * 10 if ATTR_BRIGHTNESS in kwargs: + if kwargs[ATTR_BRIGHTNESS] == 255: + kwargs[ATTR_BRIGHTNESS] = 254 + self.hass.async_add_job(self._api( self._light_control.set_dimmer(kwargs[ATTR_BRIGHTNESS], **keys))) From ce0537ef7f28af34ba76251867f8a63927d69ab5 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 5 Nov 2017 12:49:54 -0800 Subject: [PATCH 2/3] Update frontend to 20171105.0 --- homeassistant/components/frontend/__init__.py | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index 8285d47a4d8..f9c9e2ddcaf 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -21,7 +21,7 @@ from homeassistant.const import CONF_NAME, EVENT_THEMES_UPDATED from homeassistant.core import callback from homeassistant.loader import bind_hass -REQUIREMENTS = ['home-assistant-frontend==20171104.0'] +REQUIREMENTS = ['home-assistant-frontend==20171105.0'] DOMAIN = 'frontend' DEPENDENCIES = ['api', 'websocket_api'] diff --git a/requirements_all.txt b/requirements_all.txt index 0ea1dc8e4c2..a2aa2bb1057 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -330,7 +330,7 @@ hipnotify==1.0.8 holidays==0.8.1 # homeassistant.components.frontend -home-assistant-frontend==20171104.0 +home-assistant-frontend==20171105.0 # homeassistant.components.camera.onvif http://github.com/tgaugry/suds-passworddigest-py3/archive/86fc50e39b4d2b8997481967d6a7fe1c57118999.zip#suds-passworddigest-py3==0.1.2a diff --git a/requirements_test_all.txt b/requirements_test_all.txt index ab8b7e45137..cb26016687d 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -74,7 +74,7 @@ hbmqtt==0.8 holidays==0.8.1 # homeassistant.components.frontend -home-assistant-frontend==20171104.0 +home-assistant-frontend==20171105.0 # homeassistant.components.influxdb # homeassistant.components.sensor.influxdb From 210bbc53a448cec7f0cf62189655c4f69b376d59 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 5 Nov 2017 12:50:06 -0800 Subject: [PATCH 3/3] Update version to 0.57.2 --- homeassistant/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/const.py b/homeassistant/const.py index 55e9f6a9c04..64ccc1cc395 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -2,7 +2,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 57 -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)