import { SimpleLocalIntegration } from '../../core/index.js';
import { ModemCalleridConfigFlow } from './modem_callerid.classes.configflow.js';
import { createModemCalleridDiscoveryDescriptor } from './modem_callerid.discovery.js';
import type { IModemCalleridConfig } from './modem_callerid.types.js';
import { modemCalleridDomain, modemCalleridProfile } from './modem_callerid.types.js';

export class ModemCalleridIntegration extends SimpleLocalIntegration<IModemCalleridConfig> {
  public readonly domain = modemCalleridDomain;
  public readonly discoveryDescriptor = createModemCalleridDiscoveryDescriptor();
  public readonly configFlow = new ModemCalleridConfigFlow();

  constructor() {
    super(modemCalleridProfile);
  }
}

export class HomeAssistantModemCalleridIntegration extends ModemCalleridIntegration {}
