- StatefulCommand was wrongly initialized with number type, instead of the incoming parameter
This commit is contained in:
Nicu Hodos 2024-10-28 08:55:23 +01:00
parent 47a5bfc81c
commit 2a5fb84d83

View File

@ -325,7 +325,7 @@ namespace Ha {
static unordered_map<string, Command*> 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});