mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Remove unreachable code in mqtt integration discovery (#91796)
This commit is contained in:
parent
7a02e992f9
commit
ad355b3396
@ -311,10 +311,7 @@ async def async_start( # noqa: C901
|
||||
and result["reason"]
|
||||
in ("already_configured", "single_instance_allowed")
|
||||
):
|
||||
unsub = mqtt_data.integration_unsubscribe.pop(key, None)
|
||||
if unsub is None:
|
||||
return
|
||||
unsub()
|
||||
mqtt_data.integration_unsubscribe.pop(key)()
|
||||
|
||||
for topic in topics:
|
||||
key = f"{integration}_{topic}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user