Add FlowResultType enum to data entry flow (#72955)
This commit is contained in:
parent
329595bf73
commit
f91aa33c5f
11 changed files with 79 additions and 53 deletions
|
@ -11,7 +11,7 @@ import time
|
|||
|
||||
from homeassistant.const import CONF_DEVICE, CONF_PLATFORM
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.data_entry_flow import RESULT_TYPE_ABORT
|
||||
from homeassistant.data_entry_flow import FlowResultType
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.dispatcher import (
|
||||
async_dispatcher_connect,
|
||||
|
@ -305,7 +305,7 @@ async def async_start( # noqa: C901
|
|||
)
|
||||
if (
|
||||
result
|
||||
and result["type"] == RESULT_TYPE_ABORT
|
||||
and result["type"] == FlowResultType.ABORT
|
||||
and result["reason"]
|
||||
in ("already_configured", "single_instance_allowed")
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue