import { SimpleLocalIntegration } from '../../core/index.js';
import { IammeterConfigFlow } from './iammeter.classes.configflow.js';
import { createIammeterDiscoveryDescriptor } from './iammeter.discovery.js';
import type { IIammeterConfig } from './iammeter.types.js';
import { iammeterDomain, iammeterProfile } from './iammeter.types.js';

export class IammeterIntegration extends SimpleLocalIntegration<IIammeterConfig> {
  public readonly domain = iammeterDomain;
  public readonly discoveryDescriptor = createIammeterDiscoveryDescriptor();
  public readonly configFlow = new IammeterConfigFlow();

  constructor() {
    super(iammeterProfile);
  }
}

export class HomeAssistantIammeterIntegration extends IammeterIntegration {}
