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
9 changes: 3 additions & 6 deletions homeassistant/components/lightwave/light.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
"""Support for LightwaveRF lights."""
from __future__ import annotations

from homeassistant.components.light import (
ATTR_BRIGHTNESS,
SUPPORT_BRIGHTNESS,
LightEntity,
)
from homeassistant.components.light import ATTR_BRIGHTNESS, ColorMode, LightEntity
from homeassistant.const import CONF_NAME
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
Expand Down Expand Up @@ -39,7 +35,8 @@ async def async_setup_platform(
class LWRFLight(LightEntity):
"""Representation of a LightWaveRF light."""

_attr_supported_features = SUPPORT_BRIGHTNESS
_attr_color_mode = ColorMode.BRIGHTNESS
_attr_supported_color_modes = {ColorMode.BRIGHTNESS}
_attr_should_poll = False

def __init__(self, name, device_id, lwlink):
Expand Down