mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Use ColorMode enum in avea (#70424)
This commit is contained in:
parent
c390ec33cd
commit
bd2639af65
@ -6,7 +6,7 @@ import avea # pylint: disable=import-error
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
ATTR_HS_COLOR,
|
||||
COLOR_MODE_HS,
|
||||
ColorMode,
|
||||
LightEntity,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
@ -37,8 +37,8 @@ def setup_platform(
|
||||
class AveaLight(LightEntity):
|
||||
"""Representation of an Avea."""
|
||||
|
||||
_attr_color_mode = COLOR_MODE_HS
|
||||
_attr_supported_color_modes = {COLOR_MODE_HS}
|
||||
_attr_color_mode = ColorMode.HS
|
||||
_attr_supported_color_modes = {ColorMode.HS}
|
||||
|
||||
def __init__(self, light):
|
||||
"""Initialize an AveaLight."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user