import { SimpleLocalIntegration } from '../../core/index.js';
import { ElvConfigFlow } from './elv.classes.configflow.js';
import { createElvDiscoveryDescriptor } from './elv.discovery.js';
import type { IElvConfig } from './elv.types.js';
import { elvDomain, elvProfile } from './elv.types.js';

export class ElvIntegration extends SimpleLocalIntegration<IElvConfig> {
  public readonly domain = elvDomain;
  public readonly discoveryDescriptor = createElvDiscoveryDescriptor();
  public readonly configFlow = new ElvConfigFlow();

  constructor() {
    super(elvProfile);
  }
}

export class HomeAssistantElvIntegration extends ElvIntegration {}
