Allow skip-pip applied to HA core (#21527)
This commit is contained in:
parent
4f4a8a61d2
commit
5ce4fe65b2
1 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue