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.
This commit is contained in:
sparky8512 2022-05-25 16:41:07 -07:00
parent 8d2b25b971
commit b85e040761

View file

@ -20,5 +20,4 @@ print(response)
print("Software version:", response.dish_get_status.device_info.software_version) print("Software version:", response.dish_get_status.device_info.software_version)
# Check if connected # Check if connected
print("Connected" if response.dish_get_status.state == print("Not connected" if response.dish_get_status.HasField("outage") else "Connected")
dish_pb2.DishState.CONNECTED else "Not connected")