import { SimpleLocalIntegration } from '../../core/index.js';
import { GreeneyeMonitorConfigFlow } from './greeneye_monitor.classes.configflow.js';
import { createGreeneyeMonitorDiscoveryDescriptor } from './greeneye_monitor.discovery.js';
import type { IGreeneyeMonitorConfig } from './greeneye_monitor.types.js';
import { greeneyeMonitorDomain, greeneyeMonitorProfile } from './greeneye_monitor.types.js';

export class GreeneyeMonitorIntegration extends SimpleLocalIntegration<IGreeneyeMonitorConfig> {
  public readonly domain = greeneyeMonitorDomain;
  public readonly discoveryDescriptor = createGreeneyeMonitorDiscoveryDescriptor();
  public readonly configFlow = new GreeneyeMonitorConfigFlow();

  constructor() {
    super(greeneyeMonitorProfile);
  }
}

export class HomeAssistantGreeneyeMonitorIntegration extends GreeneyeMonitorIntegration {}
