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

Fix sonos async use #17099

Merged
merged 1 commit into from Oct 4, 2018
Merged

Conversation

MartinHjelmare
Copy link
Member

@MartinHjelmare MartinHjelmare commented Oct 3, 2018

Description:

  • Entry setup wasn't using the async api. Fix this by using correct async api.
  • Also use new async executor scheduler in async_added_to_hass.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code does not interact with devices:

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

* Entry setup wasn't using the async api. Fix this by using correct
  async api.s
* Also use new async executor scheduler in async_added_to_hass.
@MartinHjelmare
Copy link
Member Author

@amelchio I can't test this live. I've written a test that calls the scheduler and that works, but it doesn't really add so much since the incorrect previous usage doesn't fail that test. Not sure where we best should test this or how. I can push that commit with the test if we want.

Copy link
Contributor

@amelchio amelchio left a comment

Choose a reason for hiding this comment

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

Looks good!

I tested your branch, it works with my Sonos setup.

@pvizeli pvizeli merged commit 6a0c9a7 into home-assistant:dev Oct 4, 2018
@ghost ghost removed the in progress label Oct 4, 2018
@MartinHjelmare MartinHjelmare deleted the fix-sonos-async-use branch October 11, 2018 09:20
@balloob balloob mentioned this pull request Oct 12, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
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

4 participants