import { SimpleLocalIntegration } from '../../core/index.js';
import { BalboaConfigFlow } from './balboa.classes.configflow.js';
import { createBalboaDiscoveryDescriptor } from './balboa.discovery.js';
import type { IBalboaConfig } from './balboa.types.js';
import { balboaDomain, balboaProfile } from './balboa.types.js';

export class BalboaIntegration extends SimpleLocalIntegration<IBalboaConfig> {
  public readonly domain = balboaDomain;
  public readonly discoveryDescriptor = createBalboaDiscoveryDescriptor();
  public readonly configFlow = new BalboaConfigFlow();

  constructor() {
    super(balboaProfile);
  }
}

export class HomeAssistantBalboaIntegration extends BalboaIntegration {}
