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.
This commit is contained in:
Jon Caruana 2017-02-15 22:41:03 -08:00 committed by Paulus Schoutsen
parent 0f1a254f3b
commit 9c176ad85a

View File

@ -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."""