diff --git a/homeassistant/components/light/tplink.py b/homeassistant/components/light/tplink.py index d7544cb6c5a..09a4fa3610d 100644 --- a/homeassistant/components/light/tplink.py +++ b/homeassistant/components/light/tplink.py @@ -19,7 +19,7 @@ from homeassistant.util.color import \ from homeassistant.util.color import ( color_temperature_kelvin_to_mired as kelvin_to_mired) -REQUIREMENTS = ['pyHS100==0.3.1'] +REQUIREMENTS = ['pyHS100==0.3.2'] _LOGGER = logging.getLogger(__name__) @@ -104,6 +104,16 @@ class TPLinkSmartBulb(Light): """Turn the light off.""" self.smartbulb.state = self.smartbulb.BULB_STATE_OFF + @property + def min_mireds(self): + """Return minimum supported color temperature.""" + return kelvin_to_mired(self.smartbulb.valid_temperature_range[1]) + + @property + def max_mireds(self): + """Return maximum supported color temperature.""" + return kelvin_to_mired(self.smartbulb.valid_temperature_range[0]) + @property def color_temp(self): """Return the color temperature of this light in mireds for HA.""" diff --git a/homeassistant/components/switch/tplink.py b/homeassistant/components/switch/tplink.py index 46682d87356..eb54e7982a7 100644 --- a/homeassistant/components/switch/tplink.py +++ b/homeassistant/components/switch/tplink.py @@ -14,7 +14,7 @@ from homeassistant.components.switch import ( from homeassistant.const import (CONF_HOST, CONF_NAME, ATTR_VOLTAGE) import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['pyHS100==0.3.1'] +REQUIREMENTS = ['pyHS100==0.3.2'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index b8587b9df2b..d338edf9916 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -715,7 +715,7 @@ pyCEC==0.4.13 # homeassistant.components.light.tplink # homeassistant.components.switch.tplink -pyHS100==0.3.1 +pyHS100==0.3.2 # homeassistant.components.rfxtrx pyRFXtrx==0.22.1