import { SimpleLocalIntegration } from '../../core/index.js';
import { MelnorConfigFlow } from './melnor.classes.configflow.js';
import { createMelnorDiscoveryDescriptor } from './melnor.discovery.js';
import type { IMelnorConfig } from './melnor.types.js';
import { melnorDomain, melnorProfile } from './melnor.types.js';

export class MelnorIntegration extends SimpleLocalIntegration<IMelnorConfig> {
  public readonly domain = melnorDomain;
  public readonly discoveryDescriptor = createMelnorDiscoveryDescriptor();
  public readonly configFlow = new MelnorConfigFlow();

  constructor() {
    super(melnorProfile);
  }
}
