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
13 changes: 4 additions & 9 deletions homeassistant/components/tikteck/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
PLATFORM_SCHEMA,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR,
ColorMode,
LightEntity,
)
from homeassistant.const import CONF_DEVICES, CONF_NAME, CONF_PASSWORD
Expand All @@ -23,8 +22,6 @@

_LOGGER = logging.getLogger(__name__)

SUPPORT_TIKTECK_LED = SUPPORT_BRIGHTNESS | SUPPORT_COLOR

DEVICE_SCHEMA = vol.Schema(
{vol.Optional(CONF_NAME): cv.string, vol.Required(CONF_PASSWORD): cv.string}
)
Expand Down Expand Up @@ -57,6 +54,9 @@ def setup_platform(
class TikteckLight(LightEntity):
"""Representation of a Tikteck light."""

_attr_color_mode = ColorMode.HS
_attr_supported_color_modes = {ColorMode.HS}

def __init__(self, device):
"""Initialize the light."""

Expand Down Expand Up @@ -97,11 +97,6 @@ def hs_color(self):
"""Return the color property."""
return self._hs

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

@property
def should_poll(self):
"""Return the polling state."""
Expand Down