mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Use ColorMode enum in tellduslive (#70539)
This commit is contained in:
parent
23974eed41
commit
30b76db390
@ -2,11 +2,7 @@
|
||||
import logging
|
||||
|
||||
from homeassistant.components import light, tellduslive
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
COLOR_MODE_BRIGHTNESS,
|
||||
LightEntity,
|
||||
)
|
||||
from homeassistant.components.light import ATTR_BRIGHTNESS, ColorMode, LightEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
@ -39,8 +35,8 @@ async def async_setup_entry(
|
||||
class TelldusLiveLight(TelldusLiveEntity, LightEntity):
|
||||
"""Representation of a Tellstick Net light."""
|
||||
|
||||
_attr_color_mode = COLOR_MODE_BRIGHTNESS
|
||||
_attr_supported_color_modes = {COLOR_MODE_BRIGHTNESS}
|
||||
_attr_color_mode = ColorMode.BRIGHTNESS
|
||||
_attr_supported_color_modes = {ColorMode.BRIGHTNESS}
|
||||
|
||||
def __init__(self, client, device_id):
|
||||
"""Initialize the Tellstick Net light."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user