import { SimpleLocalIntegration } from '../../core/index.js';
import { DeakoConfigFlow } from './deako.classes.configflow.js';
import { createDeakoDiscoveryDescriptor } from './deako.discovery.js';
import type { IDeakoConfig } from './deako.types.js';
import { deakoDomain, deakoProfile } from './deako.types.js';

export class DeakoIntegration extends SimpleLocalIntegration<IDeakoConfig> {
  public readonly domain = deakoDomain;
  public readonly discoveryDescriptor = createDeakoDiscoveryDescriptor();
  public readonly configFlow = new DeakoConfigFlow();

  constructor() {
    super(deakoProfile);
  }
}

export class HomeAssistantDeakoIntegration extends DeakoIntegration {}
