From b85e040761c60bd29c3b784beb51e1e570258771 Mon Sep 17 00:00:00 2001 From: sparky8512 <76499194+sparky8512@users.noreply.github.com> Date: Wed, 25 May 2022 16:41:07 -0700 Subject: [PATCH] Fix this silly example script This never got updated to the gRPC protocol changes that happened almost a year ago. This should address part 4 of issue #45. --- dump_dish_status.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dump_dish_status.py b/dump_dish_status.py index dbeddf1..8496c88 100644 --- a/dump_dish_status.py +++ b/dump_dish_status.py @@ -20,5 +20,4 @@ print(response) print("Software version:", response.dish_get_status.device_info.software_version) # Check if connected -print("Connected" if response.dish_get_status.state == - dish_pb2.DishState.CONNECTED else "Not connected") +print("Not connected" if response.dish_get_status.HasField("outage") else "Connected")