def popQueues(): global g_currentHHID, g_dictZgs currZgIds = sonos.getZgIdsForHHID(g_currentHHID) zgsToRemove = frozenset(g_dictZgs.keys()).difference(currZgIds) for zgId in zgsToRemove: del g_dictZgs[zgId] for zgId in currZgIds: updateNPVars(zgId)
def GetAllZoneGroups(): global g_currentHHID if(g_currentHHID): return sonos.getZgIdsForHHID(g_currentHHID) return []