import { SimpleLocalIntegration } from '../../core/index.js';
import { ComfoconnectConfigFlow } from './comfoconnect.classes.configflow.js';
import { createComfoconnectDiscoveryDescriptor } from './comfoconnect.discovery.js';
import type { IComfoconnectConfig } from './comfoconnect.types.js';
import { comfoconnectDomain, comfoconnectProfile } from './comfoconnect.types.js';

export class ComfoconnectIntegration extends SimpleLocalIntegration<IComfoconnectConfig> {
  public readonly domain = comfoconnectDomain;
  public readonly discoveryDescriptor = createComfoconnectDiscoveryDescriptor();
  public readonly configFlow = new ComfoconnectConfigFlow();

  constructor() {
    super(comfoconnectProfile);
  }
}

export class HomeAssistantComfoconnectIntegration extends ComfoconnectIntegration {}
