Skip to content

Commit 4c9930c

Browse files
committed
custom states persist fix
1 parent b322f0e commit 4c9930c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ namespace espConfig
5959
/* Flags */
6060
bool lockEnableCustomState = MQTT_CUSTOM_STATE_ENABLED;
6161
bool hassMqttDiscoveryEnabled = MQTT_DISCOVERY;
62-
std::map<const char *, int> customLockStates = {{"C_LOCKED", C_LOCKED}, {"C_UNLOCKING", C_UNLOCKING}, {"C_UNLOCKED", C_UNLOCKED}, {"C_LOCKING", C_LOCKING}, {"C_JAMMED", C_JAMMED}, {"C_UNKNOWN", C_UNKNOWN}};
63-
std::map<const char *, int> customLockActions = {{"UNLOCK", UNLOCK}, {"LOCK", LOCK}};
62+
std::map<std::string, int> customLockStates = {{"C_LOCKED", C_LOCKED}, {"C_UNLOCKING", C_UNLOCKING}, {"C_UNLOCKED", C_UNLOCKED}, {"C_LOCKING", C_LOCKING}, {"C_JAMMED", C_JAMMED}, {"C_UNKNOWN", C_UNKNOWN}};
63+
std::map<std::string, int> customLockActions = {{"UNLOCK", UNLOCK}, {"LOCK", LOCK}};
6464
} mqttData;
6565

6666
struct misc_config_t

0 commit comments

Comments
 (0)