예제 #1
0
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)
예제 #2
0
def GetAllZoneGroups():
    global g_currentHHID
    if(g_currentHHID):
        return sonos.getZgIdsForHHID(g_currentHHID)
    return []