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 shuffle support for itunes component #24319

Merged

Conversation

kvanhoorn
Copy link
Contributor

@kvanhoorn kvanhoorn commented Jun 5, 2019

Description:

Added support for shuffle in itunes component

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@homeassistant homeassistant added integration: itunes small-pr PRs with less than 30 lines. labels Jun 5, 2019
@homeassistant
Copy link
Contributor

Hi @kvanhoorn,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@kvanhoorn kvanhoorn changed the title added shuffle support for itunes component Add shuffle support for itunes component Jun 5, 2019
Copy link
Member

@andrewsayre andrewsayre left a comment

Choose a reason for hiding this comment

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

Welcome and nice job!

Couple things to know:

  • Communication with devices should be abstracted in a library hosted in Pypi. The itunes integration is older and predates this development guideline. We tend to be more restrictive on PRs that propagate the anti-pattern, but this case is fine. I'd suggest checking on Discord before doing any other major work though on legacy integrations that aren't current with the development standards.
  • Apple has announced they are killing off iTunes (splitting it into multiple apps). I don't know if the new API will be compatible with the iTunes API, so you may not want to put too much more work into this integration until we know more.

@andrewsayre andrewsayre merged commit 952d72f into home-assistant:dev Jun 8, 2019
@kvanhoorn
Copy link
Contributor Author

Hi @andrewsayre I know they will stop supporting iTunes. Luckily for me I'm using an older Mac Pro, which won't support the new apps. Next to that I'm need for it now, and I wanted to give back!

Thanks for welcoming me. When I have more features I will create a PR :)

@balloob balloob mentioned this pull request Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants