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 support for Ubee Router DVW32CB #17

Merged
merged 4 commits into from
Mar 1, 2020

Conversation

seanvictory
Copy link
Contributor

Adds support for Ubee Router model DVW32CB.

Adds support for Ubee Router model DVW32CB.
r'<td>\d+</td>' # age
r'<td>.+</td>' # rssi
r'<td>.*</td>' # ip address
r'<td>(.+)?</td>' # hostname
Copy link
Owner

Choose a reason for hiding this comment

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

I would suggest to use .* instead of .+ here.
I had issue with one phone connected to Ubee router, but not showing up in Home Assistant (pull request #15). It was because that phone didn't have hostname assigned in router's list of connected devices and regex didn't match.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! How does it look now?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove the ? now; i.e., (.*) is enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed it! Thanks for your help

@StevenLooman StevenLooman merged commit 19071ec into mzdrale:master Mar 1, 2020
@StevenLooman
Copy link
Contributor

Looks good to me, merged. @mzdrale can you do a release and do a pull request for home assistant?

@seanvictory
Copy link
Contributor Author

Would I get credit for the addition on Home Assistant? I've been wanting to make a contribution and see my handle in the changelogs for a while :)

@StevenLooman
Copy link
Contributor

StevenLooman commented Mar 2, 2020 via email

@mzdrale
Copy link
Owner

mzdrale commented Mar 2, 2020

@seanvictory Thank you for contributing! You will get credit for contributing to pyubee, for sure. :) Later I will release new version of pyubee and then I'll leave to you to update Home Assistant ubee component and create pull request.

@mzdrale
Copy link
Owner

mzdrale commented Mar 2, 2020

Version 0.9 released (GitHub, PyPI).
@seanvictory go ahead and create Home Assistant pull request if you wish. Thank you for contributing!

@seanvictory
Copy link
Contributor Author

@mzdrale Thank you! I'll make the pull request soon, and comment back here once it's been created :)

@seanvictory
Copy link
Contributor Author

Made the pull request! 🎉

@StevenLooman
Copy link
Contributor

Link to pull request: home-assistant/core#32406

@mzdrale
Copy link
Owner

mzdrale commented Mar 18, 2020

Good work @seanvictory :)

New Home Assistant 0.107 released and you are mentioned as contributor. :) (search for your username)

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