(ip)
| 554 | exit_with_error("Update failed") |
| 555 | |
| 556 | def get_device_info(ip): |
| 557 | print_status_busy(f"Requesting device info") |
| 558 | url = get_url(ip, "/info") |
| 559 | try: |
| 560 | response = requests.get(url, timeout=http_timeout_seconds) |
| 561 | if response.status_code != 200: |
| 562 | print_error("Run failed") |
| 563 | else: |
| 564 | print_status_success(f"Received device info:") |
| 565 | print(response.json()) |
| 566 | except requests.RequestException as e: |
| 567 | print_status_error(f"Device info request failed: {e}") |
| 568 | |
| 569 | def run_action(manifest, ip): |
| 570 | app_id = manifest["app"]["id"] |
nothing calls this directly
no test coverage detected