import { SimpleLocalIntegration } from '../../core/index.js';
import { WebminConfigFlow } from './webmin.classes.configflow.js';
import { createWebminDiscoveryDescriptor } from './webmin.discovery.js';
import type { IWebminConfig } from './webmin.types.js';
import { webminDomain, webminProfile } from './webmin.types.js';

export class WebminIntegration extends SimpleLocalIntegration<IWebminConfig> {
  public readonly domain = webminDomain;
  public readonly discoveryDescriptor = createWebminDiscoveryDescriptor();
  public readonly configFlow = new WebminConfigFlow();

  constructor() {
    super(webminProfile);
  }
}

export class HomeAssistantWebminIntegration extends WebminIntegration {}
