anchor.diff:    meta.maintainers = lib.teams.home-assistant.members;
   
     nodes.hass = { pkgs, ... }: {
  -    environment.systemPackages = with pkgs; [ mosquitto ];
  -
       services.postgresql = {
         enable = true;
         ensureDatabases = [ "hass" ];
  
positive.code:         hass.succeed(f"grep -q 'wake_on_lan' {package}/extra_components")
  
      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'")
          hass.wait_for_open_port(8123)
          hass.succeed("curl --fail http://localhost:8123/lovelace")
  
  
negative.code:     # Cause a configuration change that requires a service restart as we added a new runtime dependency
      specialisation.newFeature = {
        inheritParentConfig = true;
        configuration.services.home-assistant.config.esphome = {};
      };
    };
  
  