import type { StatefulComponentDiscovery } from "./BaseEntityDiscovery.ts";
import {MakeEntity} from './utils';

/**
 * @see https://www.home-assistant.io/integrations/Event.mqtt/
 */
export interface EventComponentDiscovery extends StatefulComponentDiscovery {
    platform: 'event';
    device_class?: 'button' | 'doorbell' | 'motion';


    /**
     * The type/class of the event.
     */
    event_types: string[];
}

export type EventDiscovery = MakeEntity<EventComponentDiscovery>;