import { SimpleLocalIntegration } from '../../core/index.js';
import { FortiosConfigFlow } from './fortios.classes.configflow.js';
import { createFortiosDiscoveryDescriptor } from './fortios.discovery.js';
import type { IFortiosConfig } from './fortios.types.js';
import { fortiosDomain, fortiosProfile } from './fortios.types.js';

export class FortiosIntegration extends SimpleLocalIntegration<IFortiosConfig> {
  public readonly domain = fortiosDomain;
  public readonly discoveryDescriptor = createFortiosDiscoveryDescriptor();
  public readonly configFlow = new FortiosConfigFlow();

  constructor() {
    super(fortiosProfile);
  }
}

export class HomeAssistantFortiosIntegration extends FortiosIntegration {}
