Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove references to form_network #173

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ in **[`TOOLS.md`](./TOOLS.md)** but a brief description of each tool is included
- **`energy_scan`**: Performs a continuous energy scan to check for non-Zigbee interference.
- **`flash_read`**: For CC2531s, reads firmware from flash.
- **`flash_write`**: For CC2531s, writes a firmware `.bin` to flash.
- **`form_network`**: Forms a network with randomized settings on channel 15.
- **`network_backup`**: Backs up the network data and device information into a human-readable JSON document.
- **`network_restore`**: Restores a JSON network backup to the adapter.
- **`network_scan`**: Actively sends beacon requests for network stumbling.
Expand Down
10 changes: 0 additions & 10 deletions TOOLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,6 @@ $ python -m zigpy_znp.tools.nvram_reset /dev/serial/by-id/your-radio

Some warnings are normal, as not all entries will be present in every device.

## Network formation
Form a new network on the command line:

```console
$ python -m zigpy_znp.tools.form_network /dev/serial/by-id/your-radio
```

Currently no command line options are supported so the network will be formed only on
channel 15 with randomly-generated settings.

## Network scan
Nearby routers can be discovered by performing an active network scan. Pass `-a` to
prevent beacon deduplication and pass `-c 11,15` to narrow the set of channels scanned.
Expand Down
12 changes: 0 additions & 12 deletions tests/application/test_startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,6 @@ async def test_led_mode(device, led_mode, make_application):
await app.shutdown()


@pytest.mark.parametrize("device", FORMED_DEVICES)
async def test_auto_form_unnecessary(device, make_application, mocker):
app, znp_server = await make_application(server_cls=device)
mocker.patch.object(app, "form_network", new=CoroutineMock())

await app.startup(auto_form=True)

assert app.form_network.call_count == 0

await app.shutdown()


@pytest.mark.parametrize("device", EMPTY_DEVICES)
async def test_auto_form_necessary(device, make_application, mocker):
app, znp_server = await make_application(server_cls=device)
Expand Down
Empty file removed tests/tools/test_form_network.py
Empty file.
1 change: 0 additions & 1 deletion zigpy_znp/tools/energy_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ async def perform_energy_scan(radio_path, num_scans=None):
await app.start_network(read_only=True)
except NetworkNotFormed as e:
LOGGER.error("Could not start application: %s", e)
LOGGER.error("Form a network with `python -m zigpy_znp.tools.form_network`")
return

LOGGER.info("Running scan...")
Expand Down