Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions homeassistant/components/tellduslive/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from homeassistant.components import light, tellduslive
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
SUPPORT_BRIGHTNESS,
COLOR_MODE_BRIGHTNESS,
LightEntity,
)
from homeassistant.config_entries import ConfigEntry
Expand Down Expand Up @@ -39,6 +39,9 @@ async def async_discover_light(device_id):
class TelldusLiveLight(TelldusLiveEntity, LightEntity):
"""Representation of a Tellstick Net light."""

_attr_color_mode = COLOR_MODE_BRIGHTNESS
_attr_supported_color_modes = {COLOR_MODE_BRIGHTNESS}

def __init__(self, client, device_id):
"""Initialize the Tellstick Net light."""
super().__init__(client, device_id)
Expand All @@ -54,11 +57,6 @@ def brightness(self):
"""Return the brightness of this light between 0..255."""
return self.device.dim_level

@property
def supported_features(self):
"""Flag supported features."""
return SUPPORT_BRIGHTNESS

@property
def is_on(self):
"""Return true if light is on."""
Expand Down