import { SimpleLocalIntegration } from '../../core/index.js';
import { EsceaConfigFlow } from './escea.classes.configflow.js';
import { createEsceaDiscoveryDescriptor } from './escea.discovery.js';
import type { IEsceaConfig } from './escea.types.js';
import { esceaDomain, esceaProfile } from './escea.types.js';

export class EsceaIntegration extends SimpleLocalIntegration<IEsceaConfig> {
  public readonly domain = esceaDomain;
  public readonly discoveryDescriptor = createEsceaDiscoveryDescriptor();
  public readonly configFlow = new EsceaConfigFlow();

  constructor() {
    super(esceaProfile);
  }
}

export class HomeAssistantEsceaIntegration extends EsceaIntegration {}
