import { SimpleLocalIntegration } from '../../core/index.js';
import { AcmedaConfigFlow } from './acmeda.classes.configflow.js';
import { createAcmedaDiscoveryDescriptor } from './acmeda.discovery.js';
import type { IAcmedaConfig } from './acmeda.types.js';
import { acmedaDomain, acmedaProfile } from './acmeda.types.js';

export class AcmedaIntegration extends SimpleLocalIntegration<IAcmedaConfig> {
  public readonly domain = acmedaDomain;
  public readonly discoveryDescriptor = createAcmedaDiscoveryDescriptor();
  public readonly configFlow = new AcmedaConfigFlow();

  constructor() {
    super(acmedaProfile);
  }
}

export class HomeAssistantAcmedaIntegration extends AcmedaIntegration {}
