Clean up AVM Fritz!Box Tools unneccesary async_block_till_done call (#118165)
cleanup unneccesary async_bock_till_done calls
This commit is contained in:
parent
28a6f9eae7
commit
1b191230e4
3 changed files with 0 additions and 6 deletions
|
@ -71,7 +71,6 @@ async def test_buttons(
|
||||||
{ATTR_ENTITY_ID: entity_id},
|
{ATTR_ENTITY_ID: entity_id},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
mock_press_action.assert_called_once()
|
mock_press_action.assert_called_once()
|
||||||
|
|
||||||
button = hass.states.get(entity_id)
|
button = hass.states.get(entity_id)
|
||||||
|
@ -105,7 +104,6 @@ async def test_wol_button(
|
||||||
{ATTR_ENTITY_ID: "button.printer_wake_on_lan"},
|
{ATTR_ENTITY_ID: "button.printer_wake_on_lan"},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
mock_press_action.assert_called_once_with("AA:BB:CC:00:11:22")
|
mock_press_action.assert_called_once_with("AA:BB:CC:00:11:22")
|
||||||
|
|
||||||
button = hass.states.get("button.printer_wake_on_lan")
|
button = hass.states.get("button.printer_wake_on_lan")
|
||||||
|
|
|
@ -145,7 +145,6 @@ async def test_user(
|
||||||
== DEFAULT_CONSIDER_HOME.total_seconds()
|
== DEFAULT_CONSIDER_HOME.total_seconds()
|
||||||
)
|
)
|
||||||
assert not result["result"].unique_id
|
assert not result["result"].unique_id
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
assert mock_setup_entry.called
|
assert mock_setup_entry.called
|
||||||
|
|
||||||
|
@ -764,14 +763,12 @@ async def test_options_flow(hass: HomeAssistant) -> None:
|
||||||
mock_config.add_to_hass(hass)
|
mock_config.add_to_hass(hass)
|
||||||
|
|
||||||
result = await hass.config_entries.options.async_init(mock_config.entry_id)
|
result = await hass.config_entries.options.async_init(mock_config.entry_id)
|
||||||
await hass.async_block_till_done()
|
|
||||||
result = await hass.config_entries.options.async_configure(
|
result = await hass.config_entries.options.async_configure(
|
||||||
result["flow_id"],
|
result["flow_id"],
|
||||||
user_input={
|
user_input={
|
||||||
CONF_CONSIDER_HOME: 37,
|
CONF_CONSIDER_HOME: 37,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
assert result["type"] is FlowResultType.CREATE_ENTRY
|
assert result["type"] is FlowResultType.CREATE_ENTRY
|
||||||
assert result["data"] == {
|
assert result["data"] == {
|
||||||
|
|
|
@ -56,7 +56,6 @@ async def test_options_reload(
|
||||||
assert entry.state is ConfigEntryState.LOADED
|
assert entry.state is ConfigEntryState.LOADED
|
||||||
|
|
||||||
result = await hass.config_entries.options.async_init(entry.entry_id)
|
result = await hass.config_entries.options.async_init(entry.entry_id)
|
||||||
await hass.async_block_till_done()
|
|
||||||
await hass.config_entries.options.async_configure(
|
await hass.config_entries.options.async_configure(
|
||||||
result["flow_id"],
|
result["flow_id"],
|
||||||
user_input={CONF_CONSIDER_HOME: 60},
|
user_input={CONF_CONSIDER_HOME: 60},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue