import { SimpleLocalIntegration } from '../../core/index.js';
import { EverlightsConfigFlow } from './everlights.classes.configflow.js';
import { createEverlightsDiscoveryDescriptor } from './everlights.discovery.js';
import type { IEverlightsConfig } from './everlights.types.js';
import { everlightsDomain, everlightsProfile } from './everlights.types.js';

export class EverlightsIntegration extends SimpleLocalIntegration<IEverlightsConfig> {
  public readonly domain = everlightsDomain;
  public readonly discoveryDescriptor = createEverlightsDiscoveryDescriptor();
  public readonly configFlow = new EverlightsConfigFlow();

  constructor() {
    super(everlightsProfile);
  }
}

export class HomeAssistantEverlightsIntegration extends EverlightsIntegration {}
