Small log addition for samsungtv (#53206)

pull/53214/head
Simone Chemelli 2021-07-20 06:41:30 +02:00 committed by GitHub
parent e8d7952880
commit 18bc2f95c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -209,8 +209,8 @@ class SamsungTVLegacyBridge(SamsungTVBridge):
except AccessDenied:
LOGGER.debug("Working but denied config: %s", config)
return RESULT_AUTH_MISSING
except UnhandledResponse:
LOGGER.debug("Working but unsupported config: %s", config)
except UnhandledResponse as err:
LOGGER.debug("Working but unsupported config: %s, error: %s", config, err)
return RESULT_NOT_SUPPORTED
except (ConnectionClosed, OSError) as err:
LOGGER.debug("Failing config: %s, error: %s", config, err)
@ -289,8 +289,10 @@ class SamsungTVWSBridge(SamsungTVBridge):
config[CONF_TOKEN] = "*****"
LOGGER.debug("Working config: %s", config)
return RESULT_SUCCESS
except WebSocketException:
LOGGER.debug("Working but unsupported config: %s", config)
except WebSocketException as err:
LOGGER.debug(
"Working but unsupported config: %s, error: %s", config, err
)
result = RESULT_NOT_SUPPORTED
except (OSError, ConnectionFailure) as err:
LOGGER.debug("Failing config: %s, error: %s", config, err)