Skip to content

Commit

Permalink
Bump token version
Browse files Browse the repository at this point in the history
  • Loading branch information
fondberg committed Jan 5, 2020
1 parent 082a1b4 commit 16e44ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/spotcast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import random
import time

_VERSION = '2.4.0'
_VERSION = '2.4.1'
DOMAIN = 'spotcast'

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -73,10 +73,9 @@ def get_chromecast_device(device_name):

# Discover devices manually
chromecasts = pychromecast.get_chromecasts()
cast = None
for _cast in chromecasts:
if _cast.name == device_name:
_LOGGER.debug('Found cast device: %s', cast)
_LOGGER.debug('Fallback, found cast device: %s', _cast)
return _cast

raise HomeAssistantError('Could not find device with name {}'.format(device_name))
Expand Down

0 comments on commit 16e44ca

Please sign in to comment.