Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initiate source list as instance variable in Volumio #139243

Merged
merged 1 commit into from
Feb 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/volumio/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@
| MediaPlayerEntityFeature.CLEAR_PLAYLIST
| MediaPlayerEntityFeature.BROWSE_MEDIA
)
_attr_source_list = []

def __init__(self, volumio, uid, name, info):
"""Initialize the media player."""
self._volumio = volumio
unique_id = uid
self._state = {}
self.thumbnail_cache = {}
self._attr_source_list = []

Check warning on line 80 in homeassistant/components/volumio/media_player.py

View check run for this annotation

Codecov / codecov/patch

homeassistant/components/volumio/media_player.py#L80

Added line #L80 was not covered by tests
self._attr_unique_id = unique_id
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, unique_id)},
Expand Down