mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Merge pull request #8383 from effelle/development
Hass Discovery: fix missing trigger for toggle
This commit is contained in:
commit
5bbcc4f969
@ -791,7 +791,9 @@ void HAssAnyKey(void)
|
||||
|
||||
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));
|
||||
} else {
|
||||
GetTextIndexed(trg_state, sizeof(trg_state), state -9, kHAssTriggerStringButtons);
|
||||
@ -847,4 +849,4 @@ bool Xdrv12(uint8_t function)
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif // USE_HOME_ASSISTANT
|
||||
#endif // USE_HOME_ASSISTANT
|
||||
|
Loading…
x
Reference in New Issue
Block a user