Add demo mode

This commit is contained in:
Adrian Jagielak
2025-07-23 20:25:01 +02:00
parent 8546610ffd
commit 8a3f7e72bb
12 changed files with 3477 additions and 51 deletions

View File

@@ -1,9 +1,9 @@
import { MqttClient } from "mqtt/*";
import { IMqttClient } from "../mqtt/interface";
import { CommandHandlers } from "./publish_device";
export let ha: MqttClient | undefined = undefined;
export let ha: IMqttClient | undefined = undefined;
export function setHa(client: MqttClient) {
export function setHa(client: IMqttClient) {
ha = client;
}