Skip to content

Commit

Permalink
Merge pull request #489 from DPH/snap_upd2
Browse files Browse the repository at this point in the history
Added one use documentation and fixed Python 3 portnetial issue
  • Loading branch information
Kenneth Nielsen committed Mar 26, 2017
2 parents db4d416 + f44998e commit 5ceb384
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions soco/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# https://github.com/SoCo/SoCo/issues/98
#


import logging

from .compat import NullHandler
Expand Down
9 changes: 7 additions & 2 deletions soco/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"""Functionality to support saving and restoring the current Sonos state.
This is useful for scenarios such as when you want to switch to radio
and then back again to what was playing previously.
or an announcement and then back again to what was playing previously.
Warning:
This class is designed to be created used and destroyed. It is not
designed to be reused or long lived. The init sets up defaults for
one use.
"""


Expand Down Expand Up @@ -55,7 +60,7 @@ def __init__(self, device, snapshot_queue=False):
# For coordinator zone playing from Queue:
self.play_mode = None
self.cross_fade = None
self.playlist_position = None
self.playlist_position = 0
self.track_position = None

# For coordinator zone playing a Stream:
Expand Down

0 comments on commit 5ceb384

Please sign in to comment.