import { SimpleLocalIntegration } from '../../core/index.js';
import { HomeworksConfigFlow } from './homeworks.classes.configflow.js';
import { createHomeworksDiscoveryDescriptor } from './homeworks.discovery.js';
import type { IHomeworksConfig } from './homeworks.types.js';
import { homeworksDomain, homeworksProfile } from './homeworks.types.js';

export class HomeworksIntegration extends SimpleLocalIntegration<IHomeworksConfig> {
  public readonly domain = homeworksDomain;
  public readonly discoveryDescriptor = createHomeworksDiscoveryDescriptor();
  public readonly configFlow = new HomeworksConfigFlow();

  constructor() {
    super(homeworksProfile);
  }
}

export class HomeAssistantHomeworksIntegration extends HomeworksIntegration {}
