import { SimpleLocalIntegration } from '../../core/index.js';
import { AqualogicConfigFlow } from './aqualogic.classes.configflow.js';
import { createAqualogicDiscoveryDescriptor } from './aqualogic.discovery.js';
import type { IAqualogicConfig } from './aqualogic.types.js';
import { aqualogicDomain, aqualogicProfile } from './aqualogic.types.js';

export class AqualogicIntegration extends SimpleLocalIntegration<IAqualogicConfig> {
  public readonly domain = aqualogicDomain;
  public readonly discoveryDescriptor = createAqualogicDiscoveryDescriptor();
  public readonly configFlow = new AqualogicConfigFlow();

  constructor() {
    super(aqualogicProfile);
  }
}

export class HomeAssistantAqualogicIntegration extends AqualogicIntegration {}
