mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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 (
|
from homeassistant.components.light import (
|
||||||
ATTR_BRIGHTNESS,
|
ATTR_BRIGHTNESS,
|
||||||
ATTR_HS_COLOR,
|
ATTR_HS_COLOR,
|
||||||
COLOR_MODE_HS,
|
ColorMode,
|
||||||
LightEntity,
|
LightEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -37,8 +37,8 @@ def setup_platform(
|
|||||||
class AveaLight(LightEntity):
|
class AveaLight(LightEntity):
|
||||||
"""Representation of an Avea."""
|
"""Representation of an Avea."""
|
||||||
|
|
||||||
_attr_color_mode = COLOR_MODE_HS
|
_attr_color_mode = ColorMode.HS
|
||||||
_attr_supported_color_modes = {COLOR_MODE_HS}
|
_attr_supported_color_modes = {ColorMode.HS}
|
||||||
|
|
||||||
def __init__(self, light):
|
def __init__(self, light):
|
||||||
"""Initialize an AveaLight."""
|
"""Initialize an AveaLight."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user