mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Hass Discovery: fix wrong trigger state
This commit is contained in:
parent
1e8277eccd
commit
4e2edb83d2
@ -791,7 +791,9 @@ void HAssAnyKey(void)
|
|||||||
|
|
||||||
char stopic[TOPSZ];
|
char stopic[TOPSZ];
|
||||||
|
|
||||||
if (state == 3) {
|
if (state == 2) {
|
||||||
|
snprintf_P(trg_state, sizeof(trg_state), PSTR("SINGLE"));
|
||||||
|
} else if (state == 3) {
|
||||||
snprintf_P(trg_state, sizeof(trg_state), GetStateText(3));
|
snprintf_P(trg_state, sizeof(trg_state), GetStateText(3));
|
||||||
} else {
|
} else {
|
||||||
GetTextIndexed(trg_state, sizeof(trg_state), state -9, kHAssTriggerStringButtons);
|
GetTextIndexed(trg_state, sizeof(trg_state), state -9, kHAssTriggerStringButtons);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user