import { SimpleLocalIntegration } from '../../core/index.js';
import { AwairConfigFlow } from './awair.classes.configflow.js';
import { createAwairDiscoveryDescriptor } from './awair.discovery.js';
import type { IAwairConfig } from './awair.types.js';
import { awairDomain, awairProfile } from './awair.types.js';

export class AwairIntegration extends SimpleLocalIntegration<IAwairConfig> {
  public readonly domain = awairDomain;
  public readonly discoveryDescriptor = createAwairDiscoveryDescriptor();
  public readonly configFlow = new AwairConfigFlow();

  constructor() {
    super(awairProfile);
  }
}

export class HomeAssistantAwairIntegration extends AwairIntegration {}
