Skip to content

Tests for the Xiaomi Air Conditioning Companion#182

Merged
rytilahti merged 6 commits intorytilahti:masterfrom
syssi:feature/pytests-airconditioningcompanion
Jan 27, 2018
Merged

Tests for the Xiaomi Air Conditioning Companion#182
rytilahti merged 6 commits intorytilahti:masterfrom
syssi:feature/pytests-airconditioningcompanion

Conversation

@syssi
Copy link
Copy Markdown
Collaborator

@syssi syssi commented Jan 26, 2018

No description provided.

self.device._reset_state()
self.device.state[1] = None
assert self.state().fan_speed is None

Copy link
Copy Markdown

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

@coveralls
Copy link
Copy Markdown

coveralls commented Jan 26, 2018

Coverage Status

Coverage increased (+1.2%) to 63.979% when pulling 36abfa5 on syssi:feature/pytests-airconditioningcompanion into e9ce9e0 on rytilahti:master.

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))
Copy link
Copy Markdown

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)

'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',
Copy link
Copy Markdown

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))
Copy link
Copy Markdown

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)

'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',
Copy link
Copy Markdown

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)

@syssi syssi assigned syssi and unassigned syssi Jan 26, 2018
@syssi syssi requested a review from rytilahti January 26, 2018 17:28
@syssi
Copy link
Copy Markdown
Collaborator Author

syssi commented Jan 26, 2018

The tests are very basic but they are useful nevertheless. I would by happy about a quick merge because of the fixed bug.

@rytilahti
Copy link
Copy Markdown
Owner

Looks good, let's merge and deliver a release this weekend!

@rytilahti rytilahti merged commit b281845 into rytilahti:master Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants