| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1316,8 +1316,7 @@ async def child_list(dev): | |||
| 1316 | 1316 | async def child_pair(dev, timeout): | |
| 1317 | 1317 | """Pair new device.""" | |
| 1318 | 1318 | if (cs := dev.modules.get(Module.ChildSetup)) is None: | |
| 1319 | - echo("%s does not support pairing." % dev) | ||
| 1320 | - return | ||
| 1319 | + error("%s does not support pairing." % dev) | ||
| 1321 | 1320 | ||
| 1322 | 1321 | echo("Finding new devices for %s seconds" % timeout) | |
| 1323 | 1322 | return await cs.pair(timeout=timeout) | |
@@ -1329,8 +1328,7 @@ async def child_pair(dev, timeout): | |||
| 1329 | 1328 | async def child_unpair(dev, device_id: str): | |
| 1330 | 1329 | """Unpair given device.""" | |
| 1331 | 1330 | if (cs := dev.modules.get(Module.ChildSetup)) is None: | |
| 1332 | - echo("%s does not support pairing." % dev) | ||
| 1333 | - return | ||
| 1331 | + error("%s does not support pairing." % dev) | ||
| 1334 | 1332 | ||
| 1335 | 1333 | res = await cs.unpair(device_id=device_id) | |
| 1336 | 1334 | echo("Unpaired %s (if it was paired)" % device_id) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments