import { SimpleLocalIntegration } from '../../core/index.js';
import { CambridgeAudioConfigFlow } from './cambridge_audio.classes.configflow.js';
import { createCambridgeAudioDiscoveryDescriptor } from './cambridge_audio.discovery.js';
import type { ICambridgeAudioConfig } from './cambridge_audio.types.js';
import { cambridgeAudioDomain, cambridgeAudioProfile } from './cambridge_audio.types.js';

export class CambridgeAudioIntegration extends SimpleLocalIntegration<ICambridgeAudioConfig> {
  public readonly domain = cambridgeAudioDomain;
  public readonly discoveryDescriptor = createCambridgeAudioDiscoveryDescriptor();
  public readonly configFlow = new CambridgeAudioConfigFlow();

  constructor() {
    super(cambridgeAudioProfile);
  }
}

export class HomeAssistantCambridgeAudioIntegration extends CambridgeAudioIntegration {}
