From d8690f426c191d206c3e9b480fc52e9c8783eb90 Mon Sep 17 00:00:00 2001 From: Andrew Sayre <6730289+andrewsayre@users.noreply.github.com> Date: Thu, 20 Jun 2019 15:25:32 -0500 Subject: [PATCH] Bump pysmartthings (#24659) --- homeassistant/components/smartthings/manifest.json | 2 +- homeassistant/components/smartthings/smartapp.py | 12 ++++++------ requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/smartthings/manifest.json b/homeassistant/components/smartthings/manifest.json index 75b113354ff..621da91f4f8 100644 --- a/homeassistant/components/smartthings/manifest.json +++ b/homeassistant/components/smartthings/manifest.json @@ -5,7 +5,7 @@ "documentation": "https://www.home-assistant.io/components/smartthings", "requirements": [ "pysmartapp==0.3.2", - "pysmartthings==0.6.8" + "pysmartthings==0.6.9" ], "dependencies": [ "webhook" diff --git a/homeassistant/components/smartthings/smartapp.py b/homeassistant/components/smartthings/smartapp.py index 9aa44d26f2d..68999914d71 100644 --- a/homeassistant/components/smartthings/smartapp.py +++ b/homeassistant/components/smartthings/smartapp.py @@ -282,9 +282,9 @@ async def smartapp_sync_subscriptions( await api.create_subscription(sub) _LOGGER.debug("Created subscription for '%s' under app '%s'", target, installed_app_id) - except Exception: # pylint:disable=broad-except - _LOGGER.exception("Failed to create subscription for '%s' under " - "app '%s'", target, installed_app_id) + except Exception as error: # pylint:disable=broad-except + _LOGGER.error("Failed to create subscription for '%s' under app " + "'%s': %s", target, installed_app_id, error) async def delete_subscription(sub: SubscriptionEntity): try: @@ -293,9 +293,9 @@ async def smartapp_sync_subscriptions( _LOGGER.debug("Removed subscription for '%s' under app '%s' " "because it was no longer needed", sub.capability, installed_app_id) - except Exception: # pylint:disable=broad-except - _LOGGER.exception("Failed to remove subscription for '%s' under " - "app '%s'", sub.capability, installed_app_id) + except Exception as error: # pylint:disable=broad-except + _LOGGER.error("Failed to remove subscription for '%s' under app " + "'%s': %s", sub.capability, installed_app_id, error) # Build set of capabilities and prune unsupported ones capabilities = set() diff --git a/requirements_all.txt b/requirements_all.txt index c759b7bc24e..539645549ee 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1351,7 +1351,7 @@ pysma==0.3.1 pysmartapp==0.3.2 # homeassistant.components.smartthings -pysmartthings==0.6.8 +pysmartthings==0.6.9 # homeassistant.components.smarty pysmarty==0.8 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 8dfae611747..1b7e30d8dcc 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -290,7 +290,7 @@ pyqwikswitch==0.93 pysmartapp==0.3.2 # homeassistant.components.smartthings -pysmartthings==0.6.8 +pysmartthings==0.6.9 # homeassistant.components.sonos pysonos==0.0.16