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/mochad/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

from homeassistant.components.light import (
ATTR_BRIGHTNESS,
COLOR_MODE_BRIGHTNESS,
PLATFORM_SCHEMA,
SUPPORT_BRIGHTNESS,
LightEntity,
)
from homeassistant.const import CONF_ADDRESS, CONF_DEVICES, CONF_NAME, CONF_PLATFORM
Expand Down Expand Up @@ -56,6 +56,9 @@ def setup_platform(
class MochadLight(LightEntity):
"""Representation of a X10 dimmer over Mochad."""

_attr_color_mode = COLOR_MODE_BRIGHTNESS
_attr_supported_color_modes = {COLOR_MODE_BRIGHTNESS}

def __init__(self, hass, ctrl, dev):
"""Initialize a Mochad Light Device."""

Expand Down Expand Up @@ -89,11 +92,6 @@ def is_on(self):
"""Return true if the light is on."""
return self._state

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

@property
def assumed_state(self):
"""X10 devices are normally 1-way so we have to assume the state."""
Expand Down