bug fix
- StatefulCommand was wrongly initialized with number type, instead of the incoming parameter
This commit is contained in:
parent
47a5bfc81c
commit
2a5fb84d83
2
src/ha.h
2
src/ha.h
@ -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});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user