Skip to content

Fix dead Sonos web interface with some music sources#12796

Merged
balloob merged 2 commits intohome-assistant:devfrom
amelchio:sonos-invalid-xml
Mar 1, 2018
Merged

Fix dead Sonos web interface with some music sources#12796
balloob merged 2 commits intohome-assistant:devfrom
amelchio:sonos-invalid-xml

Conversation

@amelchio
Copy link
Copy Markdown
Contributor

Description:

This PR monkey patches SoCo to avoid its event thread dying on invalid XML that is popular with certain music services. This is a stopgap, SoCo itself has a fix that will be in its next update.

An initial commit changes the information extraction to rely less on the event and fetch the same data from SoCo objects. This makes the missing event data harmless.

Related issue (if applicable): hopefully fixes #12738

Checklist:

  • The code change is tested and works locally.

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

  • Local tests with tox run successfully.
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

@amelchio amelchio added this to the 0.64.2 milestone Feb 28, 2018
@balloob balloob merged commit b1cc9bf into home-assistant:dev Mar 1, 2018
balloob pushed a commit that referenced this pull request Mar 1, 2018
* Get data from soco, not event

* Patch soco.events.parse_event_xml to ignore exceptions
@balloob balloob mentioned this pull request Mar 1, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sonos Web Interface in 0.64

3 participants