mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix scene tests (#110097)
This commit is contained in:
parent
6499be8528
commit
3ca202a338
@ -240,8 +240,10 @@ async def setup_lights(hass, entities):
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
light_1, light_2 = entities
|
light_1, light_2 = entities
|
||||||
light_1.supported_color_modes = ["brightness"]
|
light_1._attr_supported_color_modes = {"brightness"}
|
||||||
light_2.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])
|
await turn_off_lights(hass, [light_1.entity_id, light_2.entity_id])
|
||||||
assert not light.is_on(hass, light_1.entity_id)
|
assert not light.is_on(hass, light_1.entity_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user