Is there a simple way to get the name of all groups on the bridge? I know I can try:
b = Bridge(<bridge ip>)
groups = b.get_group()
group_names = [groups[key]['name'] for key in groups]
I have a hunch there is a simpler way to interact with the API that will return all group names as strings in a list (without having to parse the dictionary get_group() returns like I have done). Is there??
Is there a simple way to get the name of all groups on the bridge? I know I can try:
I have a hunch there is a simpler way to interact with the API that will return all group names as strings in a list (without having to parse the dictionary
get_group()
returns like I have done). Is there??Thanks very much in advance!