import { SimpleLocalIntegration } from '../../core/index.js';
import { DucoConfigFlow } from './duco.classes.configflow.js';
import { createDucoDiscoveryDescriptor } from './duco.discovery.js';
import type { IDucoConfig } from './duco.types.js';
import { ducoDomain, ducoProfile } from './duco.types.js';

export class DucoIntegration extends SimpleLocalIntegration<IDucoConfig> {
  public readonly domain = ducoDomain;
  public readonly discoveryDescriptor = createDucoDiscoveryDescriptor();
  public readonly configFlow = new DucoConfigFlow();

  constructor() {
    super(ducoProfile);
  }
}

export class HomeAssistantDucoIntegration extends DucoIntegration {}
