mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix lint
This commit is contained in:
parent
064b2cdb9f
commit
55731b759f
@ -8,7 +8,7 @@ import asyncio
|
||||
import logging
|
||||
|
||||
from homeassistant.components import light, zha
|
||||
from homeassistant.util.color import HASS_COLOR_MIN, color_RGB_to_xy
|
||||
from homeassistant.util.color import color_RGB_to_xy
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@ -53,7 +53,6 @@ class Light(zha.Entity, light.Light):
|
||||
# Not sure all color lights necessarily support this directly
|
||||
# Should we emulate it?
|
||||
self._supported_features |= light.SUPPORT_COLOR_TEMP
|
||||
self._color_temp = HASS_COLOR_MIN
|
||||
# Silly heuristic, not sure if it works widely
|
||||
if kwargs.get('num_primaries', 1) >= 3:
|
||||
self._supported_features |= light.SUPPORT_XY_COLOR
|
||||
|
Loading…
x
Reference in New Issue
Block a user