mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Use ColorMode enum in enocean (#70489)
This commit is contained in:
parent
31fbc088fe
commit
24ace6a1fb
@ -7,8 +7,8 @@ import voluptuous as vol
|
||||
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
COLOR_MODE_BRIGHTNESS,
|
||||
PLATFORM_SCHEMA,
|
||||
ColorMode,
|
||||
LightEntity,
|
||||
)
|
||||
from homeassistant.const import CONF_ID, CONF_NAME
|
||||
@ -49,8 +49,8 @@ def setup_platform(
|
||||
class EnOceanLight(EnOceanEntity, LightEntity):
|
||||
"""Representation of an EnOcean light source."""
|
||||
|
||||
_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, sender_id, dev_id, dev_name):
|
||||
"""Initialize the EnOcean light source."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user