mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 10:47:51 +00:00
Clean up Shelly unneccesary async_block_till_done calls (#118141)
This commit is contained in:
parent
d4a95b3735
commit
ecd48cc447
@ -492,7 +492,6 @@ async def test_block_set_mode_auth_error(
|
|||||||
{ATTR_ENTITY_ID: ENTITY_ID, ATTR_HVAC_MODE: HVACMode.HEAT},
|
{ATTR_ENTITY_ID: ENTITY_ID, ATTR_HVAC_MODE: HVACMode.HEAT},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
assert entry.state is ConfigEntryState.LOADED
|
assert entry.state is ConfigEntryState.LOADED
|
||||||
|
|
||||||
|
@ -227,7 +227,6 @@ async def test_block_set_value_auth_error(
|
|||||||
{ATTR_ENTITY_ID: "number.test_name_valve_position", ATTR_VALUE: 30},
|
{ATTR_ENTITY_ID: "number.test_name_valve_position", ATTR_VALUE: 30},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
assert entry.state is ConfigEntryState.LOADED
|
assert entry.state is ConfigEntryState.LOADED
|
||||||
|
|
||||||
|
@ -618,7 +618,6 @@ async def test_rpc_sleeping_update_entity_service(
|
|||||||
service_data={ATTR_ENTITY_ID: entity_id},
|
service_data={ATTR_ENTITY_ID: entity_id},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
# Entity should be available after update_entity service call
|
# Entity should be available after update_entity service call
|
||||||
state = hass.states.get(entity_id)
|
state = hass.states.get(entity_id)
|
||||||
@ -667,7 +666,6 @@ async def test_block_sleeping_update_entity_service(
|
|||||||
service_data={ATTR_ENTITY_ID: entity_id},
|
service_data={ATTR_ENTITY_ID: entity_id},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
# Entity should be available after update_entity service call
|
# Entity should be available after update_entity service call
|
||||||
state = hass.states.get(entity_id)
|
state = hass.states.get(entity_id)
|
||||||
|
@ -230,7 +230,6 @@ async def test_block_set_state_auth_error(
|
|||||||
{ATTR_ENTITY_ID: "switch.test_name_channel_1"},
|
{ATTR_ENTITY_ID: "switch.test_name_channel_1"},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
assert entry.state is ConfigEntryState.LOADED
|
assert entry.state is ConfigEntryState.LOADED
|
||||||
|
|
||||||
@ -374,7 +373,6 @@ async def test_rpc_auth_error(
|
|||||||
{ATTR_ENTITY_ID: "switch.test_switch_0"},
|
{ATTR_ENTITY_ID: "switch.test_switch_0"},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
assert entry.state is ConfigEntryState.LOADED
|
assert entry.state is ConfigEntryState.LOADED
|
||||||
|
|
||||||
|
@ -207,7 +207,6 @@ async def test_block_update_auth_error(
|
|||||||
{ATTR_ENTITY_ID: "update.test_name_firmware_update"},
|
{ATTR_ENTITY_ID: "update.test_name_firmware_update"},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
assert entry.state is ConfigEntryState.LOADED
|
assert entry.state is ConfigEntryState.LOADED
|
||||||
|
|
||||||
@ -669,7 +668,6 @@ async def test_rpc_update_auth_error(
|
|||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
await hass.async_block_till_done()
|
|
||||||
assert entry.state is ConfigEntryState.LOADED
|
assert entry.state is ConfigEntryState.LOADED
|
||||||
|
|
||||||
flows = hass.config_entries.flow.async_progress()
|
flows = hass.config_entries.flow.async_progress()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user