webui: apply modules-... style globally

Otherwise, some things are still hidden
(or, depend on the order of incoming messages)

Make thermostat code use those as well, instead of injecting
thermostatVisible in every json payload
This commit is contained in:
Maxim Prokhorov
2021-08-22 06:41:11 +03:00
parent 5b5f104db3
commit 03573b783e
49 changed files with 9715 additions and 9666 deletions

View File

@@ -1991,7 +1991,7 @@ void _lightWebSocketStatus(JsonObject& root) {
}
void _lightWebSocketOnVisible(JsonObject& root) {
root["colorVisible"] = 1;
wsPayloadModule(root, "color");
}
void _lightWebSocketOnConnected(JsonObject& root) {