import { SimpleLocalIntegration } from '../../core/index.js';
import { EheimdigitalConfigFlow } from './eheimdigital.classes.configflow.js';
import { createEheimdigitalDiscoveryDescriptor } from './eheimdigital.discovery.js';
import type { IEheimdigitalConfig } from './eheimdigital.types.js';
import { eheimdigitalDomain, eheimdigitalProfile } from './eheimdigital.types.js';

export class EheimdigitalIntegration extends SimpleLocalIntegration<IEheimdigitalConfig> {
  public readonly domain = eheimdigitalDomain;
  public readonly discoveryDescriptor = createEheimdigitalDiscoveryDescriptor();
  public readonly configFlow = new EheimdigitalConfigFlow();

  constructor() {
    super(eheimdigitalProfile);
  }
}

export class HomeAssistantEheimdigitalIntegration extends EheimdigitalIntegration {}
