Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions tests/components/openrgb/test_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@ async def test_turn_on_restores_previous_values(

freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)

state = hass.states.get("light.ene_dram")
assert state
Expand Down Expand Up @@ -428,8 +427,7 @@ async def test_previous_values_updated_on_refresh(

freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)

# Verify new state
state = hass.states.get("light.ene_dram")
Expand All @@ -444,8 +442,7 @@ async def test_previous_values_updated_on_refresh(

freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)

# Verify light is off
state = hass.states.get("light.ene_dram")
Expand Down Expand Up @@ -492,8 +489,7 @@ async def test_turn_on_restores_rainbow_after_off(

freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)

# Verify light is off
state = hass.states.get("light.ene_dram")
Expand Down Expand Up @@ -543,8 +539,7 @@ async def test_turn_on_restores_rainbow_after_off_by_color(

freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)

# Verify light is off
state = hass.states.get("light.ene_dram")
Expand Down Expand Up @@ -777,8 +772,7 @@ async def test_dynamic_device_addition(

freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)

# Check that second light entity was added
state = hass.states.get("light.new_rgb_device")
Expand All @@ -802,9 +796,7 @@ async def test_light_availability(

freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)

state = hass.states.get("light.ene_dram")
assert state
Expand Down
Loading