diff --git a/example.py b/example.py index 89ff415..9cf9d49 100644 --- a/example.py +++ b/example.py @@ -79,6 +79,11 @@ def ac_mon(client, device_id): try: ac.monitor_start() + except wideq.core.NotConnectedError: + print('Device not available.') + return + + try: while True: time.sleep(1) state = ac.poll()