Skip to content

Commit

Permalink
added test to check login
Browse files Browse the repository at this point in the history
  • Loading branch information
KoljaWindeler committed Dec 21, 2020
1 parent fab830a commit 3894091
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/ytube_music_player/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def __init__(self, hass, config):
self._api = None
self.exc(resp="ytmusicapi")
return
if(self._api):
# test login
self._api.get_library_songs()
else:
msg= "can't file header file at "+config.get(CONF_HEADER_PATH, default_header_file)
_LOGGER.error(msg)
Expand Down

0 comments on commit 3894091

Please sign in to comment.