-
-
Notifications
You must be signed in to change notification settings - Fork 41
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 XML command "SetFanSpeed" #560
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,10 @@ class FanSpeedLevel(IntEnum): | |
|
||
# Values should be sort from low to high on their meanings | ||
QUIET = 1000 | ||
STANDARD = -1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent enumeration value. The Consider assigning a positive value to QUIET = 1000
STANDARD = 1500
NORMAL = 2000
MAX = 2500
STRONG = 3000
MAX_PLUS = 3500 |
||
NORMAL = 0 | ||
MAX = 1 | ||
STRONG = -2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent enumeration value. The Consider assigning a positive value to QUIET = 1000
STANDARD = 1500
NORMAL = 2000
MAX = 2500
STRONG = 3000
MAX_PLUS = 3500 |
||
MAX_PLUS = 2 | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise it throws an error
TypeError: 'classmethod' object is not callable
.Maybe you can reproduce it locally when reverting and running the tests.
@edenhaus Do you have a better solution?