mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +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"]
|
and result["reason"]
|
||||||
in ("already_configured", "single_instance_allowed")
|
in ("already_configured", "single_instance_allowed")
|
||||||
):
|
):
|
||||||
unsub = mqtt_data.integration_unsubscribe.pop(key, None)
|
mqtt_data.integration_unsubscribe.pop(key)()
|
||||||
if unsub is None:
|
|
||||||
return
|
|
||||||
unsub()
|
|
||||||
|
|
||||||
for topic in topics:
|
for topic in topics:
|
||||||
key = f"{integration}_{topic}"
|
key = f"{integration}_{topic}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user