diff --git a/homeassistant/components/wemo/wemo_device.py b/homeassistant/components/wemo/wemo_device.py index 3b0fbdcbe55..6fd1f4d5512 100644 --- a/homeassistant/components/wemo/wemo_device.py +++ b/homeassistant/components/wemo/wemo_device.py @@ -1,7 +1,7 @@ """Home Assistant wrapper for a pyWeMo device.""" import logging -from pywemo import PyWeMoException, WeMoDevice +from pywemo import WeMoDevice from pywemo.subscribe import EVENT_TYPE_LONG_PRESS from homeassistant.config_entries import ConfigEntry @@ -81,8 +81,10 @@ async def async_register_device( if device.supports_long_press: try: await hass.async_add_executor_job(wemo.ensure_long_press_virtual_device) - except PyWeMoException: - _LOGGER.warning( + # Temporarily handling all exceptions for #52996 & pywemo/pywemo/issues/276 + # Replace this with `except: PyWeMoException` after upstream has been fixed. + except Exception: # pylint: disable=broad-except + _LOGGER.exception( "Failed to enable long press support for device: %s", wemo.name ) device.supports_long_press = False