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:
Theo Arends 2021-02-10 13:57:33 +01:00 committed by GitHub
commit 432431f74a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -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();}
}