Skip to content

Commit

Permalink
fix bugfix with unique_id (#3217)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored and balloob committed Sep 7, 2016
1 parent 6a837f3 commit d7b757f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions homeassistant/components/media_player/sonos.py
Expand Up @@ -199,6 +199,7 @@ def __init__(self, hass, player):
self.hass = hass
self.volume_increment = 5
self._player = player
self._name = None
self.update()
self.soco_snapshot = Snapshot(self._player)

Expand All @@ -216,11 +217,6 @@ def name(self):
"""Return the name of the device."""
return self._name

@property
def unique_id(self):
"""Return a unique ID."""
return "{}.{}".format(self.__class__, self._player.uid)

@property
def state(self):
"""Return the state of the device."""
Expand Down

0 comments on commit d7b757f

Please sign in to comment.