import { SimpleLocalIntegration } from '../../core/index.js';
import { AdsConfigFlow } from './ads.classes.configflow.js';
import { createAdsDiscoveryDescriptor } from './ads.discovery.js';
import type { IAdsConfig } from './ads.types.js';
import { adsDomain, adsProfile } from './ads.types.js';

export class AdsIntegration extends SimpleLocalIntegration<IAdsConfig> {
  public readonly domain = adsDomain;
  public readonly discoveryDescriptor = createAdsDiscoveryDescriptor();
  public readonly configFlow = new AdsConfigFlow();

  constructor() {
    super(adsProfile);
  }
}

export class HomeAssistantAdsIntegration extends AdsIntegration {}
