import { SimpleLocalIntegration } from '../../core/index.js';
import { ArestConfigFlow } from './arest.classes.configflow.js';
import { createArestDiscoveryDescriptor } from './arest.discovery.js';
import type { IArestConfig } from './arest.types.js';
import { arestDomain, arestProfile } from './arest.types.js';

export class ArestIntegration extends SimpleLocalIntegration<IArestConfig> {
  public readonly domain = arestDomain;
  public readonly discoveryDescriptor = createArestDiscoveryDescriptor();
  public readonly configFlow = new ArestConfigFlow();

  constructor() {
    super(arestProfile);
  }
}

export class HomeAssistantArestIntegration extends ArestIntegration {}
