Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

MDNSDiscoverable: Set ATTR_MAC_ADDRESS if available. #143

Merged
merged 1 commit into from
Aug 29, 2017
Merged

MDNSDiscoverable: Set ATTR_MAC_ADDRESS if available. #143

merged 1 commit into from
Aug 29, 2017

Conversation

pfalcon
Copy link
Contributor

@pfalcon pfalcon commented Aug 28, 2017

If mDNS properties include a "mac" key, set top-level ATTR_MAC_ADDRESS
info property for consistency.

This property for example is available for Yeelight lights.

If mDNS properties include a "mac" key, set top-level ATTR_MAC_ADDRESS
info property for consistency.

This property for example is available for Yeelight lights.
@pfalcon
Copy link
Contributor Author

pfalcon commented Aug 28, 2017

This is another step towards having a consistent library interface (set of returned info fields), and addresses issue mentioned in #141 (comment) . Turned out the fix needs to be applied on MDNSDiscoverable level, so might help other devices too.

@balloob balloob merged commit 6351a2b into home-assistant-libs:master Aug 29, 2017
@balloob
Copy link
Collaborator

balloob commented Aug 29, 2017

Awesome, thanks 🐬

@balloob
Copy link
Collaborator

balloob commented Aug 29, 2017

I'll aim to do a new release of netdisco after the Xiaomi PR is in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants