From 67313b22c8c7e2dc20e4ed832d872aab1d491cba Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Wed, 26 Mar 2025 14:26:54 +0100 Subject: [PATCH] add icon for restart button --- gateway/include/devices.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gateway/include/devices.h b/gateway/include/devices.h index 12ed71c..fd186d3 100644 --- a/gateway/include/devices.h +++ b/gateway/include/devices.h @@ -118,7 +118,9 @@ Command* commands[] = { [](const char* msg) { if (strcmp("PRESS", msg) == 0) ESP.restart(); } - }).asDevice(gatewayDevice) + }) + .asDevice(gatewayDevice) + .withIcon("mdi:restart") .addPreconfigured(HaESP::heapStats) .addPreconfigured(HaESP::restartInfo) .build(),