import { SimpleLocalIntegration } from '../../core/index.js';
import { HassioConfigFlow } from './hassio.classes.configflow.js';
import { createHassioDiscoveryDescriptor } from './hassio.discovery.js';
import type { IHassioConfig } from './hassio.types.js';
import { hassioDomain, hassioProfile } from './hassio.types.js';

export class HassioIntegration extends SimpleLocalIntegration<IHassioConfig> {
  public readonly domain = hassioDomain;
  public readonly discoveryDescriptor = createHassioDiscoveryDescriptor();
  public readonly configFlow = new HassioConfigFlow();

  constructor() {
    super(hassioProfile);
  }
}

export class HomeAssistantHassioIntegration extends HassioIntegration {}
