Starting with Safe Mode tries to install new packages?

I had error in configuration.yaml, and HA started in Safe Mode. Strange thing in safe mode is that it tries to install new packages?

Jun 15 11:09:00 homeautomation hass[4752]: 2020-06-15 11:09:00 INFO (MainThread) [homeassistant.bootstrap] Starting in safe mode
...
Jun 15 11:09:00 homeautomation hass[4752]: 2020-06-15 11:09:00 INFO (SyncWorker_1) [homeassistant.util.package] Attempting install of pyotp==2.3.0
Jun 15 11:09:16 homeautomation hass[4752]: 2020-06-15 11:09:16 INFO (SyncWorker_5) [homeassistant.util.package] Attempting install of PyQRCode==1.2.1
...
Jun 15 11:09:31 homeautomation hass[4752]: 2020-06-15 11:09:31 INFO (SyncWorker_3) [homeassistant.util.package] Attempting install of hass-nabucasa==0.34.1
...
Jun 15 11:10:39 homeautomation hass[4752]: 2020-06-15 11:10:39 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of HAP-python==2.8.2
Jun 15 11:11:00 homeautomation hass[4752]: 2020-06-15 11:11:00 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of defusedxml==0.6.0
Jun 15 11:11:11 homeautomation hass[4752]: 2020-06-15 11:11:11 INFO (SyncWorker_1) [homeassistant.util.package] Attempting install of netdisco==2.6.0
Jun 15 11:11:28 homeautomation hass[4752]: 2020-06-15 11:11:28 INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of zeroconf==0.25.0
Jun 15 11:11:40 homeautomation hass[4752]: 2020-06-15 11:11:40 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component: No module named 'hass_nabucasa'
...
Jun 15 11:11:40 homeautomation hass[4752]: 2020-06-15 11:11:40 INFO (SyncWorker_19) [homeassistant.util.package] Attempting install of home-assistant-frontend==20200407.2
Jun 15 11:11:54 homeautomation hass[4752]: 2020-06-15 11:11:54 INFO (SyncWorker_3) [homeassistant.util.package] Attempting install of defusedxml==0.6.0

I don’t like this behavior. I don’t use cloud, so why it is trying to install cloud components?

Now I have --skip-pip parameter in service file, so it doesn’t install anything if I don’t want it to.

I also changed code in bootstrap.py to stop HA if it tries to enter Safe Mode
In function async def async_setup_hass it ends now in my version like this:

    if safe_mode:
        return None
    else:
        return hass