import { SimpleLocalIntegration } from '../../core/index.js';
import { ComelitConfigFlow } from './comelit.classes.configflow.js';
import { createComelitDiscoveryDescriptor } from './comelit.discovery.js';
import type { IComelitConfig } from './comelit.types.js';
import { comelitDomain, comelitProfile } from './comelit.types.js';

export class ComelitIntegration extends SimpleLocalIntegration<IComelitConfig> {
  public readonly domain = comelitDomain;
  public readonly discoveryDescriptor = createComelitDiscoveryDescriptor();
  public readonly configFlow = new ComelitConfigFlow();

  constructor() {
    super(comelitProfile);
  }
}

export class HomeAssistantComelitIntegration extends ComelitIntegration {}
