import { SimpleLocalIntegration } from '../../core/index.js';
import { HomekitConfigFlow } from './homekit.classes.configflow.js';
import { createHomekitDiscoveryDescriptor } from './homekit.discovery.js';
import type { IHomekitConfig } from './homekit.types.js';
import { homekitDomain, homekitProfile } from './homekit.types.js';

export class HomekitIntegration extends SimpleLocalIntegration<IHomekitConfig> {
  public readonly domain = homekitDomain;
  public readonly discoveryDescriptor = createHomekitDiscoveryDescriptor();
  public readonly configFlow = new HomekitConfigFlow();

  constructor() {
    super(homekitProfile);
  }
}

export class HomeAssistantHomekitIntegration extends HomekitIntegration {}
