From f7ba4992923031cd1844a1eb736a80f3e8a6c969 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Mon, 3 Feb 2025 19:12:31 +0100 Subject: [PATCH] change led type to light --- include/devices.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/devices.h b/include/devices.h index f6edf0d..8f67ef3 100644 --- a/include/devices.h +++ b/include/devices.h @@ -29,7 +29,7 @@ namespace Devices { .addSecondary(Builder::instance(SENSOR_ID).withValueTemplate("{{ value_json.pressure }}").withPrecision(1).build()) .build(); - auto ledMqtt = Builder::instance(new Switch{ "Led", "led", + auto ledMqtt = Builder::instance(new Light{ "Led", "led", [](const char* msg) { turnLed(strcmp("ON", msg) == 0); }