mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Initiate source list as instance variable in Volumio (#139243)
This commit is contained in:
parent
48d3dd88a1
commit
01fb6841da
@ -70,7 +70,6 @@ class Volumio(MediaPlayerEntity):
|
|||||||
| MediaPlayerEntityFeature.CLEAR_PLAYLIST
|
| MediaPlayerEntityFeature.CLEAR_PLAYLIST
|
||||||
| MediaPlayerEntityFeature.BROWSE_MEDIA
|
| MediaPlayerEntityFeature.BROWSE_MEDIA
|
||||||
)
|
)
|
||||||
_attr_source_list = []
|
|
||||||
|
|
||||||
def __init__(self, volumio, uid, name, info):
|
def __init__(self, volumio, uid, name, info):
|
||||||
"""Initialize the media player."""
|
"""Initialize the media player."""
|
||||||
@ -78,6 +77,7 @@ class Volumio(MediaPlayerEntity):
|
|||||||
unique_id = uid
|
unique_id = uid
|
||||||
self._state = {}
|
self._state = {}
|
||||||
self.thumbnail_cache = {}
|
self.thumbnail_cache = {}
|
||||||
|
self._attr_source_list = []
|
||||||
self._attr_unique_id = unique_id
|
self._attr_unique_id = unique_id
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
identifiers={(DOMAIN, unique_id)},
|
identifiers={(DOMAIN, unique_id)},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user