import { SimpleLocalIntegration } from '../../core/index.js';
import { AcaiaConfigFlow } from './acaia.classes.configflow.js';
import { createAcaiaDiscoveryDescriptor } from './acaia.discovery.js';
import type { IAcaiaConfig } from './acaia.types.js';
import { acaiaDomain, acaiaProfile } from './acaia.types.js';

export class AcaiaIntegration extends SimpleLocalIntegration<IAcaiaConfig> {
  public readonly domain = acaiaDomain;
  public readonly discoveryDescriptor = createAcaiaDiscoveryDescriptor();
  public readonly configFlow = new AcaiaConfigFlow();

  constructor() {
    super(acaiaProfile);
  }
}

export class HomeAssistantAcaiaIntegration extends AcaiaIntegration {}
