mirror of https://github.com/arendst/Tasmota.git
Merge pull request #10902 from yvesdm3000/fix_modeset
Bring ModeSet value out of the for loop, this ModeSet is repeated for…
This commit is contained in:
commit
432431f74a
|
@ -1336,13 +1336,16 @@ void TuyaSensorsShow(bool json)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (AsModuleTuyaMS()) {
|
||||
WSContentSend_P(PSTR("{s}" D_JSON_IRHVAC_MODE "{m}%d{e}"), Tuya.ModeSet);
|
||||
}
|
||||
|
||||
#endif // USE_WEBSERVER
|
||||
}
|
||||
}
|
||||
#ifdef USE_WEBSERVER
|
||||
if (AsModuleTuyaMS()) {
|
||||
WSContentSend_P(PSTR("{s}" D_JSON_IRHVAC_MODE "{m}%d{e}"), Tuya.ModeSet);
|
||||
}
|
||||
#endif // USE_WEBSERVER
|
||||
|
||||
if (RootName) { ResponseJsonEnd();}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue