From d7b757fb97a1381b250c7cd773f41922d65d60b0 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 7 Sep 2016 03:31:56 +0200 Subject: [PATCH] fix bugfix with unique_id (#3217) --- homeassistant/components/media_player/sonos.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/media_player/sonos.py b/homeassistant/components/media_player/sonos.py index 62b2aeabf51..5fc0166aefa 100644 --- a/homeassistant/components/media_player/sonos.py +++ b/homeassistant/components/media_player/sonos.py @@ -199,6 +199,7 @@ class SonosDevice(MediaPlayerDevice): self.hass = hass self.volume_increment = 5 self._player = player + self._name = None self.update() self.soco_snapshot = Snapshot(self._player) @@ -216,11 +217,6 @@ class SonosDevice(MediaPlayerDevice): """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."""