Skip to content

Make nodes aware of their serial_number.#37

Merged
Julius2342 merged 2 commits intoJulius2342:masterfrom
tschamm:master
Apr 26, 2020
Merged

Make nodes aware of their serial_number.#37
Julius2342 merged 2 commits intoJulius2342:masterfrom
tschamm:master

Conversation

@tschamm
Copy link
Copy Markdown
Contributor

@tschamm tschamm commented Apr 25, 2020

Home Assistant wants entities to provide a unique id. Neither the host ip nor the node_id are unique. The PR adds the serial number during node initialization.
If the PR is accepted and pypi version containing the PR is available, I will update home-assistant/core#34668

Regards, Thomas

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 25, 2020

Coverage Status

Coverage increased (+0.02%) to 82.254% when pulling f778af5 on tschamm:master into 46d2e55 on Julius2342:master.

Fixed tests to support serial_number.
Add setter for serial_number in frame for node information.
@Julius2342 Julius2342 merged commit da4761d into Julius2342:master Apr 26, 2020
@Julius2342
Copy link
Copy Markdown
Owner

Thank you for your contribution!

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