Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…layer into main
  • Loading branch information
KoljaWindeler committed Nov 25, 2020
2 parents 7651fff + bec6212 commit 6802c93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions custom_components/ytube_music_player/const.py
@@ -1,8 +1,6 @@
from homeassistant.components.sensor import PLATFORM_SCHEMA, ENTITY_ID_FORMAT
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
import requests
import traceback
import logging
import datetime
from collections import OrderedDict
Expand Down
3 changes: 2 additions & 1 deletion custom_components/ytube_music_player/manifest.json
Expand Up @@ -5,7 +5,8 @@
"config_flow": true,
"requirements": [
"ytmusicapi",
"pytube"
"pytube",
"integrationhelper"
],
"dependencies": [],
"codeowners": [
Expand Down
4 changes: 2 additions & 2 deletions custom_components/ytube_music_player/media_player.py
@@ -1,5 +1,5 @@
"""
Attempting to support Google Music in Home Assistant
Attempting to support yTube Music in Home Assistant
"""
import asyncio
import logging
Expand Down Expand Up @@ -383,7 +383,7 @@ def _get_track(self, entity_id=None, old_state=None, new_state=None, retry=3):
# we've reached the end of the playlist
# reset the inner playlist counter, call _update_playlist to update lib
self._next_track_no = 0
self._update_playlists(play=False)
self._load_playlist(play=False)
try:
_track = self._tracks[self._next_track_no]
except IndexError:
Expand Down

0 comments on commit 6802c93

Please sign in to comment.