import { SimpleLocalIntegration } from '../../core/index.js';
import { DormakabaDkeyConfigFlow } from './dormakaba_dkey.classes.configflow.js';
import { createDormakabaDkeyDiscoveryDescriptor } from './dormakaba_dkey.discovery.js';
import type { IDormakabaDkeyConfig } from './dormakaba_dkey.types.js';
import { dormakabaDkeyDomain, dormakabaDkeyProfile } from './dormakaba_dkey.types.js';

export class DormakabaDkeyIntegration extends SimpleLocalIntegration<IDormakabaDkeyConfig> {
  public readonly domain = dormakabaDkeyDomain;
  public readonly discoveryDescriptor = createDormakabaDkeyDiscoveryDescriptor();
  public readonly configFlow = new DormakabaDkeyConfigFlow();

  constructor() {
    super(dormakabaDkeyProfile);
  }
}

export class HomeAssistantDormakabaDkeyIntegration extends DormakabaDkeyIntegration {}
