import { SimpleLocalIntegration } from '../../core/index.js';
import { AlarmdecoderConfigFlow } from './alarmdecoder.classes.configflow.js';
import { createAlarmdecoderDiscoveryDescriptor } from './alarmdecoder.discovery.js';
import type { IAlarmdecoderConfig } from './alarmdecoder.types.js';
import { alarmdecoderDomain, alarmdecoderProfile } from './alarmdecoder.types.js';

export class AlarmdecoderIntegration extends SimpleLocalIntegration<IAlarmdecoderConfig> {
  public readonly domain = alarmdecoderDomain;
  public readonly discoveryDescriptor = createAlarmdecoderDiscoveryDescriptor();
  public readonly configFlow = new AlarmdecoderConfigFlow();

  constructor() {
    super(alarmdecoderProfile);
  }
}

export class HomeAssistantAlarmdecoderIntegration extends AlarmdecoderIntegration {}
