From 2a5fb84d83f9f332408b819c15f260fdeedf7bad Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Mon, 28 Oct 2024 08:55:23 +0100 Subject: [PATCH] bug fix - StatefulCommand was wrongly initialized with number type, instead of the incoming parameter --- src/ha.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ha.h b/src/ha.h index 5886ee6..ee64123 100644 --- a/src/ha.h +++ b/src/ha.h @@ -325,7 +325,7 @@ namespace Ha { static unordered_map mapRestoreStateTopics; StatefulCommand(const char* name, const char* id, const char* type, onMessage f) - : Command(name, id, "number", f), StateConfig(this) {} + : Command(name, id, type, f), StateConfig(this) {} void restoreFromState() { mapRestoreStateTopics.insert({stateTopic, this});