import { SimpleLocalIntegration } from '../../core/index.js';
import { DevoloHomeControlConfigFlow } from './devolo_home_control.classes.configflow.js';
import { createDevoloHomeControlDiscoveryDescriptor } from './devolo_home_control.discovery.js';
import type { IDevoloHomeControlConfig } from './devolo_home_control.types.js';
import { devoloHomeControlDomain, devoloHomeControlProfile } from './devolo_home_control.types.js';

export class DevoloHomeControlIntegration extends SimpleLocalIntegration<IDevoloHomeControlConfig> {
  public readonly domain = devoloHomeControlDomain;
  public readonly discoveryDescriptor = createDevoloHomeControlDiscoveryDescriptor();
  public readonly configFlow = new DevoloHomeControlConfigFlow();

  constructor() {
    super(devoloHomeControlProfile);
  }
}

export class HomeAssistantDevoloHomeControlIntegration extends DevoloHomeControlIntegration {}
