-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Conversation
Good job! Do you like to provide some tests, too? |
miio/tests/test_airdehumidifier.py
Outdated
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') |
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 (103 > 100 characters)
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.
modify
miio/tests/test_airdehumidifier.py
Outdated
|
||
device_info = DeviceInfo(self.device.dummy_device_info) | ||
|
||
assert repr(self.state()) == repr(AirDehumidifierStatus(self.device.start_state, device_info)) |
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 (102 > 100 characters)
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.
modify
miio/tests/test_airdehumidifier.py
Outdated
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') |
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.
continuation line over-indented for visual indent
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.
modify
miio/tests/test_airdehumidifier.py
Outdated
device_info = DeviceInfo(self.device.dummy_device_info) | ||
|
||
assert repr(self.state()) ==\ | ||
repr(AirDehumidifierStatus(self.device.start_state, device_info)) |
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.
continuation line over-indented for visual indent
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.
modify
@syssi right? |
@rytilahti |
From the surface it looks good to me, but I'll let @syssi to merge it when he sees it's fine :-) |
@syssi Thanks |
I will prepare a release soonish. |
#Add support for WIDETECH WDH318EFW1 dehumidifier (nwt.derh.wdh318efw1) #534