import { SimpleLocalIntegration } from '../../core/index.js';
import { AirthingsBleConfigFlow } from './airthings_ble.classes.configflow.js';
import { createAirthingsBleDiscoveryDescriptor } from './airthings_ble.discovery.js';
import type { IAirthingsBleConfig } from './airthings_ble.types.js';
import { airthingsBleDomain, airthingsBleProfile } from './airthings_ble.types.js';

export class AirthingsBleIntegration extends SimpleLocalIntegration<IAirthingsBleConfig> {
  public readonly domain = airthingsBleDomain;
  public readonly discoveryDescriptor = createAirthingsBleDiscoveryDescriptor();
  public readonly configFlow = new AirthingsBleConfigFlow();

  constructor() {
    super(airthingsBleProfile);
  }
}

export class HomeAssistantAirthingsBleIntegration extends AirthingsBleIntegration {}
