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

[miio] Fix issue battery channel #4752

Merged
merged 2 commits into from
Jan 30, 2019
Merged

Conversation

marcelrv
Copy link
Contributor

  • Fix error for devices with battery channel
  • Add chungmi plug m3
  • minor edits

Signed-off-by: Marcel Verpaalen [email protected]

- Fix error for devices with battery channel
- Add chungmi plug m3
- minor edits

Signed-off-by: Marcel Verpaalen <[email protected]>
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

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

Thanks. Two minor remarks.

@@ -35,6 +35,7 @@
SHUTTING_DOWN(13, "Shutting Down"),
UPDATING(14, "Updating"),
DOCKING(15, "Docking"),
GOTO(15, "Go To"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean 16? 15 is used twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks

@@ -15,6 +15,8 @@
import java.util.ArrayList;
import java.util.List;

import org.openhab.binding.miio.internal.MiIoBindingConstants;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please make this a static import?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the feedback.

improvement based on review

Signed-off-by: Marcel Verpaalen <[email protected]>
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@cweitkamp cweitkamp merged commit b1c45ae into openhab:master Jan 30, 2019
@marcelrv marcelrv deleted the miio-batteryFix branch February 2, 2019 09:14
@wborn wborn added this to the 2.5 milestone Feb 28, 2019
Pshatsillo pushed a commit to Pshatsillo/openhab-addons that referenced this pull request Jun 19, 2019
* Fix issue battery channel

- Fix error for devices with battery channel
- Add chungmi plug m3
- minor edits

Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Pshatsillo <[email protected]>
ne0h pushed a commit to ne0h/openhab-addons that referenced this pull request Sep 15, 2019
* Fix issue battery channel

- Fix error for devices with battery channel
- Add chungmi plug m3
- minor edits

Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Maximilian Hess <[email protected]>
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.

3 participants