import { SimpleLocalIntegration } from '../../core/index.js';
import { ImprovBleConfigFlow } from './improv_ble.classes.configflow.js';
import { createImprovBleDiscoveryDescriptor } from './improv_ble.discovery.js';
import type { IImprovBleConfig } from './improv_ble.types.js';
import { improvBleDomain, improvBleProfile } from './improv_ble.types.js';

export class ImprovBleIntegration extends SimpleLocalIntegration<IImprovBleConfig> {
  public readonly domain = improvBleDomain;
  public readonly discoveryDescriptor = createImprovBleDiscoveryDescriptor();
  public readonly configFlow = new ImprovBleConfigFlow();

  constructor() {
    super(improvBleProfile);
  }
}
