Beispiel #1
0
def add_scenes():
    changed = False
    for scene in share_data.scenes_added:
        scene_api.send_scene(share_data.client, scene)
        changed = True
    for old_name, new_name in share_data.scenes_renamed:
        scene_api.send_scene_renamed(share_data.client, old_name, new_name)
        changed = True
    return changed
Beispiel #2
0
def add_scenes():
    changed = False
    for scene in share_data.scenes_added:
        scene_api.send_scene(share_data.client, scene)
        changed = True
    return changed