import { SimpleLocalIntegration } from '../../core/index.js';
import { EphemberConfigFlow } from './ephember.classes.configflow.js';
import { createEphemberDiscoveryDescriptor } from './ephember.discovery.js';
import type { IEphemberConfig } from './ephember.types.js';
import { ephemberDomain, ephemberProfile } from './ephember.types.js';

export class EphemberIntegration extends SimpleLocalIntegration<IEphemberConfig> {
  public readonly domain = ephemberDomain;
  public readonly discoveryDescriptor = createEphemberDiscoveryDescriptor();
  public readonly configFlow = new EphemberConfigFlow();

  constructor() {
    super(ephemberProfile);
  }
}

export class HomeAssistantEphemberIntegration extends EphemberIntegration {}
