mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Allow skip-pip applied to HA core (#21527)
This commit is contained in:
parent
238c4247d9
commit
eda2290d47
@ -85,6 +85,11 @@ async def async_from_config_dict(config: Dict[str, Any],
|
||||
async_enable_logging(hass, verbose, log_rotate_days, log_file,
|
||||
log_no_color)
|
||||
|
||||
hass.config.skip_pip = skip_pip
|
||||
if skip_pip:
|
||||
_LOGGER.warning("Skipping pip installation of required modules. "
|
||||
"This may cause issues")
|
||||
|
||||
core_config = config.get(core.DOMAIN, {})
|
||||
has_api_password = bool(config.get('http', {}).get('api_password'))
|
||||
trusted_networks = config.get('http', {}).get('trusted_networks')
|
||||
@ -104,11 +109,6 @@ async def async_from_config_dict(config: Dict[str, Any],
|
||||
await hass.async_add_executor_job(
|
||||
conf_util.process_ha_config_upgrade, hass)
|
||||
|
||||
hass.config.skip_pip = skip_pip
|
||||
if skip_pip:
|
||||
_LOGGER.warning("Skipping pip installation of required modules. "
|
||||
"This may cause issues")
|
||||
|
||||
# Make a copy because we are mutating it.
|
||||
config = OrderedDict(config)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user