import { SimpleLocalIntegration } from '../../core/index.js';
import { Control4ConfigFlow } from './control4.classes.configflow.js';
import { createControl4DiscoveryDescriptor } from './control4.discovery.js';
import type { IControl4Config } from './control4.types.js';
import { control4Domain, control4Profile } from './control4.types.js';

export class Control4Integration extends SimpleLocalIntegration<IControl4Config> {
  public readonly domain = control4Domain;
  public readonly discoveryDescriptor = createControl4DiscoveryDescriptor();
  public readonly configFlow = new Control4ConfigFlow();

  constructor() {
    super(control4Profile);
  }
}

export class HomeAssistantControl4Integration extends Control4Integration {}
