From 16e44cac63e29dd37ead932e6f3551498a461c58 Mon Sep 17 00:00:00 2001 From: Niklas Fondberg Date: Sun, 5 Jan 2020 16:29:26 +0100 Subject: [PATCH] Bump token version --- custom_components/spotcast/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/spotcast/__init__.py b/custom_components/spotcast/__init__.py index 82b343f5..9bc57f8d 100644 --- a/custom_components/spotcast/__init__.py +++ b/custom_components/spotcast/__init__.py @@ -7,7 +7,7 @@ import random import time -_VERSION = '2.4.0' +_VERSION = '2.4.1' DOMAIN = 'spotcast' _LOGGER = logging.getLogger(__name__) @@ -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))