mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
No bare except
This commit is contained in:
parent
0b57cfb004
commit
8701be095b
@ -72,7 +72,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||||||
config = PLATFORM_SCHEMA(discovery_payload)
|
config = PLATFORM_SCHEMA(discovery_payload)
|
||||||
await _async_setup_entity(config, async_add_entities,
|
await _async_setup_entity(config, async_add_entities,
|
||||||
discovery_hash)
|
discovery_hash)
|
||||||
except: # noqa: E722
|
except Exception:
|
||||||
if discovery_hash:
|
if discovery_hash:
|
||||||
del hass.data[ALREADY_DISCOVERED][discovery_hash]
|
del hass.data[ALREADY_DISCOVERED][discovery_hash]
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user