Skip to content

Fix startup of sonos / snapshot handling / error handling#6945

Merged
balloob merged 5 commits into
home-assistant:devfrom
pvizeli:sonos-start-fix
Apr 6, 2017
Merged

Fix startup of sonos / snapshot handling / error handling#6945
balloob merged 5 commits into
home-assistant:devfrom
pvizeli:sonos-start-fix

Conversation

@pvizeli
Copy link
Copy Markdown
Member

@pvizeli pvizeli commented Apr 5, 2017

Description:

  • Cleanup logs with soco Errors
  • Change snapshot handling to a trow away object after comments from SoCo team
  • Move callback regist to async_added_to_hass
  • Remove update overtask code
  • Add decorator for coordinator handling

@mention-bot
Copy link
Copy Markdown

@pvizeli, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rhooper, @valentinalexeev and @fabaff to be potential reviewers.

@asyncio.coroutine
def async_added_to_hass(self):
"""Subscribe sonos events."""
self._subscribe_to_player_events()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this async safe? The function isn't annotated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I look deeper into SoCo code and see that is not a good idea to run it inside loop. I move it into executor.

@balloob balloob merged commit 86568b4 into home-assistant:dev Apr 6, 2017
@fabaff fabaff mentioned this pull request Apr 6, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
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.

5 participants