2025-07-24 16:34:58 +02:00

15 lines
390 B
TypeScript

import { IMqttClient } from '../mqtt/interface';
import { CommandHandlers } from './publish_device';
export let ha: IMqttClient | undefined = undefined;
export function setHa(client: IMqttClient) {
ha = client;
}
export let haCommandHandlers: CommandHandlers | undefined = undefined;
export function setHaCommandHandlers(handlers: CommandHandlers) {
haCommandHandlers = handlers;
}