From 9c176ad85a3a112be8657da7e455aa9505bb8069 Mon Sep 17 00:00:00 2001 From: Jon Caruana Date: Wed, 15 Feb 2017 22:41:03 -0800 Subject: [PATCH] LiteJet: Lights should have the option to dim in the UI. (#6031) * LiteJet: Lights should have the option to dim in the UI. * Fix lint error. --- homeassistant/components/light/litejet.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/light/litejet.py b/homeassistant/components/light/litejet.py index 33185dad07b..6534d180262 100644 --- a/homeassistant/components/light/litejet.py +++ b/homeassistant/components/light/litejet.py @@ -7,7 +7,8 @@ https://home-assistant.io/components/light.litejet/ import logging import homeassistant.components.litejet as litejet -from homeassistant.components.light import ATTR_BRIGHTNESS, Light +from homeassistant.components.light import ( + ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS, Light) DEPENDENCIES = ['litejet'] @@ -49,6 +50,11 @@ class LiteJetLight(Light): _LOGGER.debug("Updating due to notification for %s", self._name) self._hass.async_add_job(self.async_update_ha_state(True)) + @property + def supported_features(self): + """Flag supported features.""" + return SUPPORT_BRIGHTNESS + @property def name(self): """The light's name."""