import { SimpleLocalIntegration } from '../../core/index.js';
import { EgaugeConfigFlow } from './egauge.classes.configflow.js';
import { createEgaugeDiscoveryDescriptor } from './egauge.discovery.js';
import type { IEgaugeConfig } from './egauge.types.js';
import { egaugeDomain, egaugeProfile } from './egauge.types.js';

export class EgaugeIntegration extends SimpleLocalIntegration<IEgaugeConfig> {
  public readonly domain = egaugeDomain;
  public readonly discoveryDescriptor = createEgaugeDiscoveryDescriptor();
  public readonly configFlow = new EgaugeConfigFlow();

  constructor() {
    super(egaugeProfile);
  }
}

export class HomeAssistantEgaugeIntegration extends EgaugeIntegration {}
