import { SimpleLocalIntegration } from '../../core/index.js';
import { FingConfigFlow } from './fing.classes.configflow.js';
import { createFingDiscoveryDescriptor } from './fing.discovery.js';
import type { IFingConfig } from './fing.types.js';
import { fingDomain, fingProfile } from './fing.types.js';

export class FingIntegration extends SimpleLocalIntegration<IFingConfig> {
  public readonly domain = fingDomain;
  public readonly discoveryDescriptor = createFingDiscoveryDescriptor();
  public readonly configFlow = new FingConfigFlow();

  constructor() {
    super(fingProfile);
  }
}

export class HomeAssistantFingIntegration extends FingIntegration {}
