Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'a'uto Option to 'om' Field #48

Merged
merged 2 commits into from
Jun 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyairctrl/airctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def main():
default="http",
)
parser.add_argument("-d", "--debug", help="show debug output", action="store_true")
parser.add_argument("--om", help="set fan speed", choices=["1", "2", "3", "s", "t"])
parser.add_argument("--om", help="set fan speed", choices=["1", "2", "3", "s", "t", "a"])
parser.add_argument("--pwr", help="power on/off", choices=["0", "1"])
parser.add_argument(
"--mode", help="set mode", choices=["P", "A", "S", "M", "B", "N"]
Expand Down
2 changes: 1 addition & 1 deletion pyairctrl/status_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"temp" : ("Temperature: {}", None),
"func" : ("Function: {}", lambda func: {'P': 'Purification', 'PH': 'Purification & Humidification'}.get(func, func)),
"mode" : ("Mode: {}", lambda mode: {'P': 'auto', 'A': 'allergen', 'S': 'sleep', 'M': 'manual', 'B': 'bacteria', 'N': 'night'}.get(mode, mode)),
"om" : ("Fan speed: {}", lambda om: {'s': 'silent', 't': 'turbo'}.get(om, om)),
"om" : ("Fan speed: {}", lambda om: {'s': 'silent', 't': 'turbo', 'a': 'auto'}.get(om, om)),
"aqil" : ("Light brightness: {}", None),
"aqit" : ("Air quality notification threshold: {}", None),
"uil" : ("Buttons light: {}", lambda uil: {'1': 'ON', '0': 'OFF'}.get(uil, uil)),
Expand Down