Fix scene tests (#110097)

pull/110109/head
Erik Montnemery 2024-02-09 14:10:59 +01:00 committed by GitHub
parent 6499be8528
commit 3ca202a338
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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)