From 3e903d65546d4a0adf31a69ec72846e7618348e9 Mon Sep 17 00:00:00 2001 From: Shy Date: Mon, 13 Mar 2017 14:52:29 +0100 Subject: [PATCH] List global remote presets before room specific ones --- c4ctrl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c4ctrl.py b/c4ctrl.py index a2537e8..4f9c3cc 100755 --- a/c4ctrl.py +++ b/c4ctrl.py @@ -822,7 +822,7 @@ class RemotePresets: # Presets in "global" are available everywhere and should always be included if "global" not in rooms: - rooms.append("global") + rooms.insert(0, "global") req = [] for room in rooms: @@ -921,7 +921,7 @@ if __name__ == "__main__": help="list available Kitchenlight modes and their options") # Ambient control group_cl = parser.add_argument_group(title="ambient color control", - description="PRESET may be either a preset name or a color value in hex notation (eg. \"#ff0066\").") + description="PRESET may be either a preset name or a color value in hex notation (eg. \"#ff0066\").") group_cl.add_argument( "-w", "--wohnzimmer", type=str, dest="w_color", metavar="PRESET", help="apply local colorscheme PRESET to Wohnzimmer") @@ -939,7 +939,7 @@ if __name__ == "__main__": help="store current state as preset NAME") # Remote presets group_rp = parser.add_argument_group(title="remote preset functions", - description="Available room names are \"wohnzimmer\", \"plenar\", \"fnord\" and \"keller\". Preset and room names can be abbreviated.") + description="Available room names are \"wohnzimmer\", \"plenar\", \"fnord\" and \"keller\". Preset and room names can be abbreviated.") group_rp.add_argument( "-r", "--remote-preset", type=str, metavar="PRESET[:ROOM[,ROOM,...]]", help="activate remote PRESET for ROOM.")