Use ColorMode enum in lutron_caseta (#70519)

pull/70543/head
epenet 2022-04-23 21:22:10 +02:00 committed by GitHub
parent 5bb850eea3
commit aa64acf918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ import logging
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_TRANSITION,
COLOR_MODE_BRIGHTNESS,
DOMAIN,
ColorMode,
LightEntity,
LightEntityFeature,
)
@ -56,8 +56,8 @@ async def async_setup_entry(
class LutronCasetaLight(LutronCasetaDevice, LightEntity):
"""Representation of a Lutron Light, including dimmable."""
_attr_color_mode = COLOR_MODE_BRIGHTNESS
_attr_supported_color_modes = {COLOR_MODE_BRIGHTNESS}
_attr_color_mode = ColorMode.BRIGHTNESS
_attr_supported_color_modes = {ColorMode.BRIGHTNESS}
_attr_supported_features = LightEntityFeature.TRANSITION
@property