import { SimpleLocalIntegration } from '../../core/index.js';
import { ArwnConfigFlow } from './arwn.classes.configflow.js';
import { createArwnDiscoveryDescriptor } from './arwn.discovery.js';
import type { IArwnConfig } from './arwn.types.js';
import { arwnDomain, arwnProfile } from './arwn.types.js';

export class ArwnIntegration extends SimpleLocalIntegration<IArwnConfig> {
  public readonly domain = arwnDomain;
  public readonly discoveryDescriptor = createArwnDiscoveryDescriptor();
  public readonly configFlow = new ArwnConfigFlow();

  constructor() {
    super(arwnProfile);
  }
}

export class HomeAssistantArwnIntegration extends ArwnIntegration {}
