import { SimpleLocalIntegration } from '../../core/index.js';
import { BthomeConfigFlow } from './bthome.classes.configflow.js';
import { createBthomeDiscoveryDescriptor } from './bthome.discovery.js';
import type { IBthomeConfig } from './bthome.types.js';
import { bthomeDomain, bthomeProfile } from './bthome.types.js';

export class BthomeIntegration extends SimpleLocalIntegration<IBthomeConfig> {
  public readonly domain = bthomeDomain;
  public readonly discoveryDescriptor = createBthomeDiscoveryDescriptor();
  public readonly configFlow = new BthomeConfigFlow();

  constructor() {
    super(bthomeProfile);
  }
}

export class HomeAssistantBthomeIntegration extends BthomeIntegration {}
