import { SimpleLocalIntegration } from '../../core/index.js';
import { GardenaBluetoothConfigFlow } from './gardena_bluetooth.classes.configflow.js';
import { createGardenaBluetoothDiscoveryDescriptor } from './gardena_bluetooth.discovery.js';
import type { IGardenaBluetoothConfig } from './gardena_bluetooth.types.js';
import { gardenaBluetoothDomain, gardenaBluetoothProfile } from './gardena_bluetooth.types.js';

export class GardenaBluetoothIntegration extends SimpleLocalIntegration<IGardenaBluetoothConfig> {
  public readonly domain = gardenaBluetoothDomain;
  public readonly discoveryDescriptor = createGardenaBluetoothDiscoveryDescriptor();
  public readonly configFlow = new GardenaBluetoothConfigFlow();

  constructor() {
    super(gardenaBluetoothProfile);
  }
}

export class HomeAssistantGardenaBluetoothIntegration extends GardenaBluetoothIntegration {}
