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:
parent
8d2b25b971
commit
b85e040761
1 changed files with 1 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue