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

Output all identifiers and mac address when scanning with atvscript #2282

Merged
merged 2 commits into from
Dec 17, 2023

Conversation

maxileith
Copy link
Contributor

@maxileith maxileith commented Nov 8, 2023

Hi @postlund ,

for the use-case I am currently working on, I use Airplay MAC-Adresses as an identifier maxileith/homebridge-appletv-enhanced#20. Therefore, I always need to get the MAC-Address as an identifier from atvscript. However, currently the returned identifier from atvscript scan is not always the MAC-Address. Therefore, I would suggest to add an attribute all_identifieres to the output json. By not touching identifier of the output json, backward compatability is given.

I'd love to hear your thoughts on that.

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (427c362) 88.95% compared to head (a3a4c65) 88.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2282      +/-   ##
==========================================
- Coverage   88.95%   88.80%   -0.15%     
==========================================
  Files         168      168              
  Lines       11370    11370              
==========================================
- Hits        10114    10097      -17     
- Misses       1256     1273      +17     

see 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maxileith maxileith force-pushed the atvscriptBuff branch 3 times, most recently from fb4887b to c8106d3 Compare November 8, 2023 17:32
@maxileith maxileith force-pushed the atvscriptBuff branch 5 times, most recently from 3708120 to be19f3e Compare November 11, 2023 19:40
@maxileith
Copy link
Contributor Author

I have updated the pull request to include the MAC-Address in the device infos since I noticed that this is available on the atv object anyways

@maxileith maxileith changed the title Output all identifiers when scanning with atvscript Output all identifiers and mac address when scanning with atvscript Nov 12, 2023
@maxileith
Copy link
Contributor Author

Hi @postlund ,

Can you do a ruff estimation on when you will have the time to look at the PR? I don't want to stress, I am just curious and would like to evaluate wether I will wait for the PR or do a workaround 😬

@postlund
Copy link
Owner

@maxileith Sorry about the delay, I will try to get around doing that this week!

@postlund
Copy link
Owner

Sorry for not getting back sooner on this, but it looks good to me! 👍 I'll see if there's anything else to include, otherwise I can make a minor release soon with this change.

@postlund postlund merged commit 2da50e9 into postlund:master Dec 17, 2023
17 of 18 checks passed
@maxileith
Copy link
Contributor Author

@postlund don't worry about the late response. We all have private lifes besides our passion for FOSS 😉

@maxileith maxileith deleted the atvscriptBuff branch December 17, 2023 21:22
sebbo2002 pushed a commit to sebbo2002/node-pyatv that referenced this pull request Dec 26, 2023
adding the new mac attribute introduced in postlund/pyatv#2282 to the device.
sebbo2002 pushed a commit to sebbo2002/node-pyatv that referenced this pull request Dec 26, 2023
adding the new all_identifiers attribute introduced in postlund/pyatv#2282 to the device as allIDs.
sebbo2002 pushed a commit to sebbo2002/node-pyatv that referenced this pull request Dec 26, 2023
adding the new mac attribute introduced in postlund/pyatv#2282 to the device.
github-actions bot pushed a commit to sebbo2002/node-pyatv that referenced this pull request Dec 26, 2023
# [7.2.0](v7.1.0...v7.2.0) (2023-12-26)

### Features

* **core:** add allIDs attribute to device ([02a9c05](02a9c05)), closes [postlund/pyatv#2282](postlund/pyatv#2282)
* **core:** add mac attribute to device ([5b0f58c](5b0f58c)), closes [postlund/pyatv#2282](postlund/pyatv#2282)
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.

2 participants