diff --git a/homeassistant/components/binary_sensor/mqtt.py b/homeassistant/components/binary_sensor/mqtt.py index 6ad0f23976f..34db8b2f3fb 100644 --- a/homeassistant/components/binary_sensor/mqtt.py +++ b/homeassistant/components/binary_sensor/mqtt.py @@ -69,7 +69,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): config = PLATFORM_SCHEMA(discovery_payload) await _async_setup_entity(config, async_add_entities, discovery_hash) - except: # noqa: E722 + except Exception: if discovery_hash: del hass.data[ALREADY_DISCOVERED][discovery_hash] raise