import { SimpleLocalIntegration } from '../../core/index.js';
import { Concord232ConfigFlow } from './concord232.classes.configflow.js';
import { createConcord232DiscoveryDescriptor } from './concord232.discovery.js';
import type { IConcord232Config } from './concord232.types.js';
import { concord232Domain, concord232Profile } from './concord232.types.js';

export class Concord232Integration extends SimpleLocalIntegration<IConcord232Config> {
  public readonly domain = concord232Domain;
  public readonly discoveryDescriptor = createConcord232DiscoveryDescriptor();
  public readonly configFlow = new Concord232ConfigFlow();

  constructor() {
    super(concord232Profile);
  }
}

export class HomeAssistantConcord232Integration extends Concord232Integration {}
