import { SimpleLocalIntegration } from '../../core/index.js';
import { YardianConfigFlow } from './yardian.classes.configflow.js';
import { createYardianDiscoveryDescriptor } from './yardian.discovery.js';
import type { IYardianConfig } from './yardian.types.js';
import { yardianDomain, yardianProfile } from './yardian.types.js';

export class YardianIntegration extends SimpleLocalIntegration<IYardianConfig> {
  public readonly domain = yardianDomain;
  public readonly discoveryDescriptor = createYardianDiscoveryDescriptor();
  public readonly configFlow = new YardianConfigFlow();

  constructor() {
    super(yardianProfile);
  }
}

export class HomeAssistantYardianIntegration extends YardianIntegration {}
