anchor.diff:  
         # tests loading components by overriding the package
         package = (pkgs.home-assistant.override {
  +        extraPackages = ps: with ps; [
  +          colorama
  +        ];
           extraComponents = [ "zha" ];
         }).overrideAttrs (oldAttrs: {
           doInstallCheck = false;
  
positive.code: 
      with subtest("Check the lovelace config is copied because lovelaceConfigWritable = true"):
          hass.succeed("test -f ${configDir}/ui-lovelace.yaml")
  
      with subtest("Check that Home Assistant's web interface and API can be reached"):
          hass.wait_until_succeeds("journalctl -u home-assistant.service | grep -q 'Home Assistant initialized in'")
  
negative.code:   };
  
    testScript = ''
      import re
  
      start_all()
  
      # Parse the package path out of the systemd unit, as we cannot
      # access the final package, that is overriden inside the module,
      # by any other means.
      pattern = re.compile(r"path=(?P<path>[\/a-z0-9-.]+)\/bin\/hass")
      response = hass.execute("systemctl show -p ExecStart home-assistant.service")[1]
      match = pattern.search(response)
      package = match.group('path')
  
      hass.wait_for_unit("home-assistant.service")
  
  