import { SimpleLocalIntegration } from '../../core/index.js';
import { InkbirdConfigFlow } from './inkbird.classes.configflow.js';
import { createInkbirdDiscoveryDescriptor } from './inkbird.discovery.js';
import type { IInkbirdConfig } from './inkbird.types.js';
import { inkbirdDomain, inkbirdProfile } from './inkbird.types.js';

export class InkbirdIntegration extends SimpleLocalIntegration<IInkbirdConfig> {
  public readonly domain = inkbirdDomain;
  public readonly discoveryDescriptor = createInkbirdDiscoveryDescriptor();
  public readonly configFlow = new InkbirdConfigFlow();

  constructor() {
    super(inkbirdProfile);
  }
}

export class HomeAssistantInkbirdIntegration extends InkbirdIntegration {}
