mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-09-13 23:47:08 +00:00
15 lines
390 B
TypeScript
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;
|
|
}
|