import { SimpleLocalIntegration } from '../../core/index.js';
import { FamilyhubConfigFlow } from './familyhub.classes.configflow.js';
import { createFamilyhubDiscoveryDescriptor } from './familyhub.discovery.js';
import type { IFamilyhubConfig } from './familyhub.types.js';
import { familyhubDomain, familyhubProfile } from './familyhub.types.js';

export class FamilyhubIntegration extends SimpleLocalIntegration<IFamilyhubConfig> {
  public readonly domain = familyhubDomain;
  public readonly discoveryDescriptor = createFamilyhubDiscoveryDescriptor();
  public readonly configFlow = new FamilyhubConfigFlow();

  constructor() {
    super(familyhubProfile);
  }
}

export class HomeAssistantFamilyhubIntegration extends FamilyhubIntegration {}
