import { SimpleLocalIntegration } from '../../core/index.js';
import { VeraConfigFlow } from './vera.classes.configflow.js';
import { createVeraDiscoveryDescriptor } from './vera.discovery.js';
import type { IVeraConfig } from './vera.types.js';
import { veraDomain, veraProfile } from './vera.types.js';

export class VeraIntegration extends SimpleLocalIntegration<IVeraConfig> {
  public readonly domain = veraDomain;
  public readonly discoveryDescriptor = createVeraDiscoveryDescriptor();
  public readonly configFlow = new VeraConfigFlow();

  constructor() {
    super(veraProfile);
  }
}

export class HomeAssistantVeraIntegration extends VeraIntegration {}
