import { SimpleLocalIntegration } from '../../core/index.js';
import { HrEnergyQubeConfigFlow } from './hr_energy_qube.classes.configflow.js';
import { createHrEnergyQubeDiscoveryDescriptor } from './hr_energy_qube.discovery.js';
import type { IHrEnergyQubeConfig } from './hr_energy_qube.types.js';
import { hrEnergyQubeDomain, hrEnergyQubeProfile } from './hr_energy_qube.types.js';

export class HrEnergyQubeIntegration extends SimpleLocalIntegration<IHrEnergyQubeConfig> {
  public readonly domain = hrEnergyQubeDomain;
  public readonly discoveryDescriptor = createHrEnergyQubeDiscoveryDescriptor();
  public readonly configFlow = new HrEnergyQubeConfigFlow();

  constructor() {
    super(hrEnergyQubeProfile);
  }
}

export class HomeAssistantHrEnergyQubeIntegration extends HrEnergyQubeIntegration {}
