import { SimpleLocalIntegration } from '../../core/index.js';
import { CoolmasterConfigFlow } from './coolmaster.classes.configflow.js';
import { createCoolmasterDiscoveryDescriptor } from './coolmaster.discovery.js';
import type { ICoolmasterConfig } from './coolmaster.types.js';
import { coolmasterDomain, coolmasterProfile } from './coolmaster.types.js';

export class CoolmasterIntegration extends SimpleLocalIntegration<ICoolmasterConfig> {
  public readonly domain = coolmasterDomain;
  public readonly discoveryDescriptor = createCoolmasterDiscoveryDescriptor();
  public readonly configFlow = new CoolmasterConfigFlow();

  constructor() {
    super(coolmasterProfile);
  }
}

export class HomeAssistantCoolmasterIntegration extends CoolmasterIntegration {}
