-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Tests for the Xiaomi Air Conditioning Companion #182
Tests for the Xiaomi Air Conditioning Companion #182
Conversation
self.device._reset_state() | ||
self.device.state[1] = None | ||
assert self.state().fan_speed is None | ||
|
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.
blank line at end of file
configuration = configuration.replace('[wi]', fan_speed.value) | ||
configuration = configuration.replace('[sw]', swing_mode.value) | ||
configuration = configuration.replace('[po]', str(power.value)) | ||
configuration = configuration.replace('[mo]', str(operation_mode.value)) |
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.
line too long (80 > 79 characters)
@@ -48,7 +48,7 @@ class Power(enum.Enum): | |||
}, | |||
'0100010727': { | |||
'deviceType': 'gree_2', | |||
'base': '[po][mo][wi][sw][tt]1100190[tt1]205002102000t7t0190[tt1]207002000000[tt4]0', | |||
'base': '[po][mo][wi][sw][tt]1100190[tt1]205002102000[tt7]0190[tt1]207002000000[tt4]0', |
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.
line too long (95 > 79 characters)
configuration = configuration.replace('[wi]', fan_speed.value) | ||
configuration = configuration.replace('[sw]', swing_mode.value) | ||
configuration = configuration.replace('[po]', str(power.value)) | ||
configuration = configuration.replace('[mo]', str(operation_mode.value)) |
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.
line too long (80 > 79 characters)
@@ -48,7 +48,7 @@ class Power(enum.Enum): | |||
}, | |||
'0100010727': { | |||
'deviceType': 'gree_2', | |||
'base': '[po][mo][wi][sw][tt]1100190[tt1]205002102000t7t0190[tt1]207002000000[tt4]0', | |||
'base': '[po][mo][wi][sw][tt]1100190[tt1]205002102000[tt7]0190[tt1]207002000000[tt4]0', |
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.
line too long (95 > 79 characters)
The tests are very basic but they are useful nevertheless. I would by happy about a quick merge because of the fixed bug. |
Looks good, let's merge and deliver a release this weekend! |
No description provided.