import { SimpleLocalIntegration } from '../../core/index.js';
import { AltruistConfigFlow } from './altruist.classes.configflow.js';
import { createAltruistDiscoveryDescriptor } from './altruist.discovery.js';
import type { IAltruistConfig } from './altruist.types.js';
import { altruistDomain, altruistProfile } from './altruist.types.js';

export class AltruistIntegration extends SimpleLocalIntegration<IAltruistConfig> {
  public readonly domain = altruistDomain;
  public readonly discoveryDescriptor = createAltruistDiscoveryDescriptor();
  public readonly configFlow = new AltruistConfigFlow();

  constructor() {
    super(altruistProfile);
  }
}

export class HomeAssistantAltruistIntegration extends AltruistIntegration {}
