diff --git a/tests/data/devices/ericsity-gl-c-009p.json b/tests/data/devices/ericsity-gl-c-009p.json index b1b4973f3..803cda3b3 100644 --- a/tests/data/devices/ericsity-gl-c-009p.json +++ b/tests/data/devices/ericsity-gl-c-009p.json @@ -407,16 +407,15 @@ "on": false, "brightness": 254, "xy_color": null, - "color_temp": 500, + "color_temp": null, "effect_list": [ "off" ], "effect": "off", "supported_features": 40, - "color_mode": "color_temp", + "color_mode": "brightness", "supported_color_modes": [ "brightness", - "color_temp", "onoff" ], "off_with_transition": false, diff --git a/tests/data/devices/homr-hrmsn01.json b/tests/data/devices/homr-hrmsn01.json index 83941b7b5..c07d96b06 100644 --- a/tests/data/devices/homr-hrmsn01.json +++ b/tests/data/devices/homr-hrmsn01.json @@ -519,7 +519,7 @@ 0.0, 0.0 ], - "color_temp": 0, + "color_temp": null, "effect_list": [ "off" ], @@ -528,7 +528,6 @@ "color_mode": "xy", "supported_color_modes": [ "brightness", - "color_temp", "onoff", "xy" ], diff --git a/tests/data/devices/ledvance-outdoor-accent-light-rgb.json b/tests/data/devices/ledvance-outdoor-accent-light-rgb.json index 2bce26f86..c5579d0af 100644 --- a/tests/data/devices/ledvance-outdoor-accent-light-rgb.json +++ b/tests/data/devices/ledvance-outdoor-accent-light-rgb.json @@ -385,16 +385,15 @@ 0.16398870832379644, 0.13199053940642405 ], - "color_temp": 1901, + "color_temp": null, "effect_list": [ "off" ], "effect": "off", "supported_features": 40, - "color_mode": "color_temp", + "color_mode": "xy", "supported_color_modes": [ "brightness", - "color_temp", "onoff", "xy" ], diff --git a/tests/data/devices/sonoff-dongle-e-r.json b/tests/data/devices/sonoff-dongle-e-r.json index 14e297bc5..74fbd5c0a 100644 --- a/tests/data/devices/sonoff-dongle-e-r.json +++ b/tests/data/devices/sonoff-dongle-e-r.json @@ -532,16 +532,15 @@ "on": false, "brightness": 51, "xy_color": null, - "color_temp": 17476, + "color_temp": null, "effect_list": [ "off" ], "effect": "off", "supported_features": 40, - "color_mode": "color_temp", + "color_mode": "brightness", "supported_color_modes": [ "brightness", - "color_temp", "onoff" ], "off_with_transition": false, diff --git a/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json b/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json index ec2922f99..9d2b219ee 100644 --- a/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json +++ b/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json @@ -381,16 +381,15 @@ 0.0, 0.0 ], - "color_temp": 270, + "color_temp": null, "effect_list": [ "off" ], "effect": "off", "supported_features": 40, - "color_mode": "color_temp", + "color_mode": "xy", "supported_color_modes": [ "brightness", - "color_temp", "onoff", "xy" ], diff --git a/zha/zigbee/cluster_handlers/lighting.py b/zha/zigbee/cluster_handlers/lighting.py index cfe0020ad..7bca622d6 100644 --- a/zha/zigbee/cluster_handlers/lighting.py +++ b/zha/zigbee/cluster_handlers/lighting.py @@ -142,7 +142,7 @@ def color_temp_supported(self) -> bool: return ( self.color_capabilities is not None and Color.ColorCapabilities.Color_temperature in self.color_capabilities - ) or self.color_temperature is not None + ) @property def color_loop_supported(self) -> bool: