import { SimpleLocalIntegration } from '../../core/index.js';
import { InelsConfigFlow } from './inels.classes.configflow.js';
import { createInelsDiscoveryDescriptor } from './inels.discovery.js';
import type { IInelsConfig } from './inels.types.js';
import { inelsDomain, inelsProfile } from './inels.types.js';

export class InelsIntegration extends SimpleLocalIntegration<IInelsConfig> {
  public readonly domain = inelsDomain;
  public readonly discoveryDescriptor = createInelsDiscoveryDescriptor();
  public readonly configFlow = new InelsConfigFlow();

  constructor() {
    super(inelsProfile);
  }
}
