import { SimpleLocalIntegration } from '../../core/index.js';
import { CasperGlowConfigFlow } from './casper_glow.classes.configflow.js';
import { createCasperGlowDiscoveryDescriptor } from './casper_glow.discovery.js';
import type { ICasperGlowConfig } from './casper_glow.types.js';
import { casperGlowDomain, casperGlowProfile } from './casper_glow.types.js';

export class CasperGlowIntegration extends SimpleLocalIntegration<ICasperGlowConfig> {
  public readonly domain = casperGlowDomain;
  public readonly discoveryDescriptor = createCasperGlowDiscoveryDescriptor();
  public readonly configFlow = new CasperGlowConfigFlow();

  constructor() {
    super(casperGlowProfile);
  }
}

export class HomeAssistantCasperGlowIntegration extends CasperGlowIntegration {}
