import { SimpleLocalIntegration } from '../../core/index.js';
import { TransmissionConfigFlow } from './transmission.classes.configflow.js';
import { createTransmissionDiscoveryDescriptor } from './transmission.discovery.js';
import type { ITransmissionConfig } from './transmission.types.js';
import { transmissionDomain, transmissionProfile } from './transmission.types.js';

export class TransmissionIntegration extends SimpleLocalIntegration<ITransmissionConfig> {
  public readonly domain = transmissionDomain;
  public readonly discoveryDescriptor = createTransmissionDiscoveryDescriptor();
  public readonly configFlow = new TransmissionConfigFlow();

  constructor() {
    super(transmissionProfile);
  }
}

export class HomeAssistantTransmissionIntegration extends TransmissionIntegration {}
