import { SimpleLocalIntegration } from '../../core/index.js';
import { Elkm1ConfigFlow } from './elkm1.classes.configflow.js';
import { createElkm1DiscoveryDescriptor } from './elkm1.discovery.js';
import type { IElkm1Config } from './elkm1.types.js';
import { elkm1Domain, elkm1Profile } from './elkm1.types.js';

export class Elkm1Integration extends SimpleLocalIntegration<IElkm1Config> {
  public readonly domain = elkm1Domain;
  public readonly discoveryDescriptor = createElkm1DiscoveryDescriptor();
  public readonly configFlow = new Elkm1ConfigFlow();

  constructor() {
    super(elkm1Profile);
  }
}

export class HomeAssistantElkm1Integration extends Elkm1Integration {}
