import { SimpleLocalIntegration } from '../../core/index.js';
import { ApacheKafkaConfigFlow } from './apache_kafka.classes.configflow.js';
import { createApacheKafkaDiscoveryDescriptor } from './apache_kafka.discovery.js';
import type { IApacheKafkaConfig } from './apache_kafka.types.js';
import { apacheKafkaDomain, apacheKafkaProfile } from './apache_kafka.types.js';

export class ApacheKafkaIntegration extends SimpleLocalIntegration<IApacheKafkaConfig> {
  public readonly domain = apacheKafkaDomain;
  public readonly discoveryDescriptor = createApacheKafkaDiscoveryDescriptor();
  public readonly configFlow = new ApacheKafkaConfigFlow();

  constructor() {
    super(apacheKafkaProfile);
  }
}

export class HomeAssistantApacheKafkaIntegration extends ApacheKafkaIntegration {}
