From 22add7aea8492b173c539597d69b97f1b8d30dd2 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Fri, 17 May 2024 18:01:12 +0200 Subject: [PATCH] move all devices creattion in devices.h --- gateway/include/devices.h | 19 +++++++++++++++++++ gateway/include/ha.h | 8 ++++---- gateway/include/mqtt.h | 21 +-------------------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gateway/include/devices.h b/gateway/include/devices.h index 46d395e..b59c9cb 100644 --- a/gateway/include/devices.h +++ b/gateway/include/devices.h @@ -94,3 +94,22 @@ struct EasyHomeSwitch : Switch { publisher(stateTopic, msg); } }; + +Command* commands[] = { + Builder