From 3ca202a338dd25e3c8e33aa7044546dc674c3afe Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 9 Feb 2024 14:10:59 +0100 Subject: [PATCH] Fix scene tests (#110097) --- tests/components/scene/test_init.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/components/scene/test_init.py b/tests/components/scene/test_init.py index 26d9294dedb..e0b2af87187 100644 --- a/tests/components/scene/test_init.py +++ b/tests/components/scene/test_init.py @@ -240,8 +240,10 @@ async def setup_lights(hass, entities): await hass.async_block_till_done() light_1, light_2 = entities - light_1.supported_color_modes = ["brightness"] - light_2.supported_color_modes = ["brightness"] + light_1._attr_supported_color_modes = {"brightness"} + light_2._attr_supported_color_modes = {"brightness"} + light_1._attr_color_mode = "brightness" + light_2._attr_color_mode = "brightness" await turn_off_lights(hass, [light_1.entity_id, light_2.entity_id]) assert not light.is_on(hass, light_1.entity_id)