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/isy994/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from pyisy.nodes import Node

from homeassistant.components.light import (
COLOR_MODE_BRIGHTNESS,
DOMAIN as LIGHT,
SUPPORT_BRIGHTNESS,
LightEntity,
)
from homeassistant.config_entries import ConfigEntry
Expand Down Expand Up @@ -51,6 +51,9 @@ async def async_setup_entry(
class ISYLightEntity(ISYNodeEntity, LightEntity, RestoreEntity):
"""Representation of an ISY994 light device."""

_attr_color_mode = COLOR_MODE_BRIGHTNESS
_attr_supported_color_modes = {COLOR_MODE_BRIGHTNESS}

def __init__(self, node: Node, restore_light_state: bool) -> None:
"""Initialize the ISY994 light device."""
super().__init__(node)
Expand Down Expand Up @@ -108,11 +111,6 @@ def extra_state_attributes(self) -> dict[str, Any]:
attribs[ATTR_LAST_BRIGHTNESS] = self._last_brightness
return attribs

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

async def async_added_to_hass(self) -> None:
"""Restore last_brightness on restart."""
await super().async_added_to_hass()
Expand Down