import { SimpleLocalIntegration } from '../../core/index.js';
import { LannouncerConfigFlow } from './lannouncer.classes.configflow.js';
import { createLannouncerDiscoveryDescriptor } from './lannouncer.discovery.js';
import type { ILannouncerConfig } from './lannouncer.types.js';
import { lannouncerDomain, lannouncerProfile } from './lannouncer.types.js';

export class LannouncerIntegration extends SimpleLocalIntegration<ILannouncerConfig> {
  public readonly domain = lannouncerDomain;
  public readonly discoveryDescriptor = createLannouncerDiscoveryDescriptor();
  public readonly configFlow = new LannouncerConfigFlow();

  constructor() {
    super(lannouncerProfile);
  }
}

export class HomeAssistantLannouncerIntegration extends LannouncerIntegration {}
