Add hass property to Entity to prevent 'Attribute hass is None' error during self.update_ha_state

This commit is contained in:
Roy Hooper 2015-09-13 16:53:05 -04:00
parent ce22f3c82d
commit d4834ff408

View File

@ -57,6 +57,7 @@ class SonosDevice(MediaPlayerDevice):
# pylint: disable=too-many-arguments
def __init__(self, hass, player):
self.hass = hass
super(SonosDevice, self).__init__()
self._player = player
self.update()