mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Adjust MAX_LOAD_CONCURRENTLY constant to allow 6 storage loaders (#112468)
This commit is contained in:
parent
3f9dbd3e25
commit
e568f867d2
@ -101,7 +101,6 @@ STAGE_2_TIMEOUT = 300
|
|||||||
WRAP_UP_TIMEOUT = 300
|
WRAP_UP_TIMEOUT = 300
|
||||||
COOLDOWN_TIME = 60
|
COOLDOWN_TIME = 60
|
||||||
|
|
||||||
MAX_LOAD_CONCURRENTLY = 6
|
|
||||||
|
|
||||||
DEBUGGER_INTEGRATIONS = {"debugpy"}
|
DEBUGGER_INTEGRATIONS = {"debugpy"}
|
||||||
CORE_INTEGRATIONS = {"homeassistant", "persistent_notification"}
|
CORE_INTEGRATIONS = {"homeassistant", "persistent_notification"}
|
||||||
|
@ -21,7 +21,7 @@ from homeassistant.core import (
|
|||||||
callback,
|
callback,
|
||||||
)
|
)
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
from homeassistant.loader import MAX_LOAD_CONCURRENTLY, bind_hass
|
from homeassistant.loader import bind_hass
|
||||||
from homeassistant.util import json as json_util
|
from homeassistant.util import json as json_util
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
from homeassistant.util.file import WriteError
|
from homeassistant.util.file import WriteError
|
||||||
@ -36,6 +36,7 @@ else:
|
|||||||
|
|
||||||
# mypy: allow-untyped-calls, allow-untyped-defs, no-warn-return-any
|
# mypy: allow-untyped-calls, allow-untyped-defs, no-warn-return-any
|
||||||
# mypy: no-check-untyped-defs
|
# mypy: no-check-untyped-defs
|
||||||
|
MAX_LOAD_CONCURRENTLY = 6
|
||||||
|
|
||||||
STORAGE_DIR = ".storage"
|
STORAGE_DIR = ".storage"
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
@ -98,7 +98,6 @@ CUSTOM_WARNING = (
|
|||||||
|
|
||||||
_UNDEF = object() # Internal; not helpers.typing.UNDEFINED due to circular dependency
|
_UNDEF = object() # Internal; not helpers.typing.UNDEFINED due to circular dependency
|
||||||
|
|
||||||
MAX_LOAD_CONCURRENTLY = 4
|
|
||||||
|
|
||||||
MOVED_ZEROCONF_PROPS = ("macaddress", "model", "manufacturer")
|
MOVED_ZEROCONF_PROPS = ("macaddress", "model", "manufacturer")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user