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 mi dehumidifier v1 (nwt.derh.wdh318efw1) #535

Merged
merged 2 commits into from
Aug 9, 2019
Merged

Conversation

stkang
Copy link
Contributor

@stkang stkang commented Aug 1, 2019

#Add support for WIDETECH WDH318EFW1 dehumidifier (nwt.derh.wdh318efw1) #534

@coveralls
Copy link

coveralls commented Aug 1, 2019

Coverage Status

Coverage decreased (-0.9%) to 71.046% when pulling 99040fe on stkang:master into dd01456 on rytilahti:master.

@syssi
Copy link
Collaborator

syssi commented Aug 1, 2019

Good job! Do you like to provide some tests, too?

assert self.state().target_humidity == self.device.start_state["auto"]
assert self.state().fan_speed == FanSpeed(self.device.start_state["fan_speed"])
assert self.state().tank_full == (self.device.start_state["tank_full"] == 'on')
assert self.state().compressor_status == (self.device.start_state["compressor_status"] == 'on')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (103 > 100 characters)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modify


device_info = DeviceInfo(self.device.dummy_device_info)

assert repr(self.state()) == repr(AirDehumidifierStatus(self.device.start_state, device_info))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (102 > 100 characters)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modify

assert self.state().fan_speed == FanSpeed(self.device.start_state["fan_speed"])
assert self.state().tank_full == (self.device.start_state["tank_full"] == 'on')
assert self.state().compressor_status == \
(self.device.start_state["compressor_status"] == 'on')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line over-indented for visual indent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modify

device_info = DeviceInfo(self.device.dummy_device_info)

assert repr(self.state()) ==\
repr(AirDehumidifierStatus(self.device.start_state, device_info))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line over-indented for visual indent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modify

@stkang
Copy link
Contributor Author

stkang commented Aug 1, 2019

@syssi right?

@stkang stkang closed this Aug 1, 2019
@stkang stkang reopened this Aug 1, 2019
@stkang
Copy link
Contributor Author

stkang commented Aug 2, 2019

@rytilahti
please, checkand merge. :)

@rytilahti
Copy link
Owner

From the surface it looks good to me, but I'll let @syssi to merge it when he sees it's fine :-)

@syssi syssi merged commit 3a9c16e into rytilahti:master Aug 9, 2019
@stkang
Copy link
Contributor Author

stkang commented Aug 9, 2019

@syssi Thanks

@syssi
Copy link
Collaborator

syssi commented Aug 9, 2019

I will prepare a release soonish.

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.

5 participants