mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add hass property to Entity to prevent 'Attribute hass is None' error during self.update_ha_state
This commit is contained in:
parent
ce22f3c82d
commit
d4834ff408
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user