After every service restart homeassistant always installs the same python packages again

After restating the service

sudo systemctl restart home-assistant.service

I always notice a delay in restart time and this is due to home assistant installing the same few packages everytime.

$ systemctl status home-assistant.service
* home-assistant.service - Home assistant
     Loaded: loaded (/usr/lib/systemd/system/home-assistant.service; enabled; vendor preset: disabled)
     Active: active (running) since Fri 2020-04-24 09:34:45 UTC; 2min 41s ago
   Main PID: 5246 (hass)
      Tasks: 30 (limit: 2197)
     Memory: 102.8M
     CGroup: /system.slice/home-assistant.service
             |-5246 /usr/bin/python /usr/bin/hass --config /var/lib/hass/ --log-rotate-days 1
             `-5350 /usr/bin/python -m pip install --quiet home-assistant-frontend==20200318.1 --upgrade --constraint /usr/lib/python3.8/site-packages/homeassistant/package_constraints.txt --user --prefix=

Apr 24 09:37:18 archpi hass[5246]: 2020-04-24 09:37:18 INFO (MainThread) [homeassistant.setup] Setting up logbook
Apr 24 09:37:18 archpi hass[5246]: 2020-04-24 09:37:18 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
Apr 24 09:37:18 archpi hass[5246]: 2020-04-24 09:37:18 INFO (SyncWorker_7) [homeassistant.components.sky_hub.device_tracker] Scanning
Apr 24 09:37:18 archpi hass[5246]: 2020-04-24 09:37:18 INFO (SyncWorker_3) [homeassistant.components.tado.device_tracker] Scanner initialized
Apr 24 09:37:19 archpi hass[5246]: 2020-04-24 09:37:19 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 30.3 seconds.
Apr 24 09:37:19 archpi hass[5246]: 2020-04-24 09:37:19 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.icloud
Apr 24 09:37:19 archpi hass[5246]: 2020-04-24 09:37:19 INFO (MainThread) [homeassistant.setup] Setting up ios
  • home-assistant-frontend
  • zeroconf
  • hass-nabucasa
  • homeconnect

Is this expected behaviour? is there a way to mitigate this from happening as it slows down my development cycle when trying to play with the yaml configuration

hi,
its not nice - but thats the expected way from a/the/some dev …

They don’t bother with versionstrings they always use the sloppy mallet method.