1
mirror of https://github.com/home-assistant/core synced 2024-08-06 09:34:49 +02:00

Fix try_connect in samsungtv (#66653)

* Fix try_connect in samsungtv

* Use try...else

* Adjust try...else

* Undo try...else

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-02-16 16:17:11 +01:00 committed by GitHub
parent 0911eb1fba
commit 3b87c01af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,8 +303,8 @@ class SamsungTVWSBridge(SamsungTVBridge):
self.token = remote.token
if self.token is None:
config[CONF_TOKEN] = "*****"
LOGGER.debug("Working config: %s", config)
return RESULT_SUCCESS
LOGGER.debug("Working config: %s", config)
return RESULT_SUCCESS
except WebSocketException as err:
LOGGER.debug(
"Working but unsupported config: %s, error: %s", config, err