Giter Club home page Giter Club logo

pysonos's People

Contributors

agriffis avatar amelchio avatar americanwookie avatar bdraco avatar bjarniivarsson avatar dajobe avatar daubman avatar doreilly avatar dph avatar dundeemt avatar flavio avatar ghcs27 avatar hugovk avatar jjlawren avatar labero avatar lawrenceakka avatar michaelotto avatar phut avatar pmatos avatar poirier avatar pwt avatar r0stig avatar rahims avatar relevitt avatar robwebset avatar sbelluzzo avatar scottgwaters avatar stefankoegl avatar tzneal avatar xxdede avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pysonos's Issues

Unhandled favorite

Hello,

All my playlists are detected as Unhandled favorite (Sonos playlists, Spotify...)
If I add radio stations, albums, artists... to My Sonos, they appears successfully on my Home Assistant.

Have you an idea what's the problem is ?
Thank you

pytest-cov 2.6.1

Hi, Im observing that tests have hard requirements for pytest-cov version: pytest-cov>=2.4.0,<2.6. Im trying to prepare your package for NixOS operating system (NixOS/nixpkgs#60853) and it were easy if I could use ustream version (2.6.1) of pytest-cov.

AttributeError: 'NoneType' object has no attribute 'startswith'

Hello

On current HA dev (v110) I get following exception with my symfonisk speaker and spotify account.

Exception happened during processing of request from ('192.168.1.142', 39703)
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/events.py", line 100, in __init__
    super(EventNotifyHandler, self).__init__(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 720, in __init__
    self.handle()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 426, in handle
    self.handle_one_request()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 414, in handle_one_request
    method()
  File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/events.py", line 109, in do_NOTIFY
    self.handle_notification(headers, content)
  File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/events_base.py", line 239, in handle_notification
    variables = parse_event_xml(content)
  File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/events_base.py", line 107, in parse_event_xml
    didl = from_didl_string(value)
  File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/data_structures_entry.py", line 55, in from_didl_string
    item = attempt_datastructure_upgrade(item)
  File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/data_structures_entry.py", line 89, in attempt_datastructure_upgrade
    if resource.uri.startswith('x-sonos-http'):
AttributeError: 'NoneType' object has no attribute 'startswith'

resource variable contain result of pysonos.data_structure_quirks.apply_resource_quirks function with protocol_info == 'DUMMY_ADDED_BY_QUIRK'

homeassistant-0.91.1 FutureWarning

server.log says:

/usr/lib64/python3.6/site-packages/pysonos/services.py:675: FutureWarning: The behavior of this method will change in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
  value_list_elt = state.find('{}allowedValueList'.format(ns))\

Support for room groups with S2

Would it be possible to add support for room groups with S2, carried forward to the Home Assistant integration? Although similar functionality is possible with Home Assistant directly, it would be nice to have Sonos controller app room groups and Home Assistant groups in sync.

Or, is this actually an issue for SoCo?

Support more music providers

Thanks for the excellent work adding Spotify share links support in #65!

What would be the steps to support other providers in the same manner? YouTube Music, Apple Music, Tidal, SoundCloud...? Do we need something similar to spotify_magic?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.