mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Fix light after rebase
This commit is contained in:
parent
99e2ac2d2f
commit
dcefdc7bf2
@ -79,11 +79,11 @@ class TradfriLight(TradfriBaseEntity, LightEntity):
|
||||
|
||||
# Calculate supported color modes
|
||||
modes: set[ColorMode] = {ColorMode.ONOFF}
|
||||
if device_control.supports_hsb_xy_color:
|
||||
if device_data.supports_hsb_xy_color:
|
||||
modes.add(ColorMode.HS)
|
||||
if device_control.supports_color_temp:
|
||||
if device_data.supports_color_temp:
|
||||
modes.add(ColorMode.COLOR_TEMP)
|
||||
if device_control.supports_dimmer:
|
||||
if device_data.supports_dimmer:
|
||||
modes.add(ColorMode.BRIGHTNESS)
|
||||
self._attr_supported_color_modes = filter_supported_color_modes(modes)
|
||||
if len(self._attr_supported_color_modes) == 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user