Use ColorMode enum in pilight (#70532)
This commit is contained in:
parent
93be31290d
commit
dad806b16b
1 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
COLOR_MODE_BRIGHTNESS,
|
||||
PLATFORM_SCHEMA,
|
||||
ColorMode,
|
||||
LightEntity,
|
||||
)
|
||||
from homeassistant.const import CONF_LIGHTS
|
||||
|
@ -49,8 +49,8 @@ def setup_platform(
|
|||
class PilightLight(PilightBaseDevice, LightEntity):
|
||||
"""Representation of a Pilight switch."""
|
||||
|
||||
_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, hass, name, config):
|
||||
"""Initialize a switch."""
|
||||
|
|
Loading…
Add table
Reference in a new issue