mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix webserver responsiveness where there are a lot of discoveries (#64719)
This commit is contained in:
parent
a70c980283
commit
490d8e1136
@ -7,12 +7,12 @@ from collections.abc import Iterable, Mapping
|
||||
from dataclasses import dataclass
|
||||
from types import MappingProxyType
|
||||
from typing import Any, TypedDict
|
||||
import uuid
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from .core import HomeAssistant, callback
|
||||
from .exceptions import HomeAssistantError
|
||||
from .util import uuid as uuid_util
|
||||
|
||||
RESULT_TYPE_FORM = "form"
|
||||
RESULT_TYPE_CREATE_ENTRY = "create_entry"
|
||||
@ -223,7 +223,7 @@ class FlowManager(abc.ABC):
|
||||
raise UnknownFlow("Flow was not created")
|
||||
flow.hass = self.hass
|
||||
flow.handler = handler
|
||||
flow.flow_id = uuid.uuid4().hex
|
||||
flow.flow_id = uuid_util.random_uuid_hex()
|
||||
flow.context = context
|
||||
flow.init_data = data
|
||||
self._async_add_flow_progress(flow)
|
||||
|
Loading…
x
Reference in New Issue
Block a user