import { SimpleLocalIntegration } from '../../core/index.js';
import { TwinklyConfigFlow } from './twinkly.classes.configflow.js';
import { createTwinklyDiscoveryDescriptor } from './twinkly.discovery.js';
import type { ITwinklyConfig } from './twinkly.types.js';
import { twinklyDomain, twinklyProfile } from './twinkly.types.js';

export class TwinklyIntegration extends SimpleLocalIntegration<ITwinklyConfig> {
  public readonly domain = twinklyDomain;
  public readonly discoveryDescriptor = createTwinklyDiscoveryDescriptor();
  public readonly configFlow = new TwinklyConfigFlow();

  constructor() {
    super(twinklyProfile);
  }
}

export class HomeAssistantTwinklyIntegration extends TwinklyIntegration {}
