mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-09-14 14:14:09 +00:00
fix lint warnings from SonarQube
This commit is contained in:
@@ -147,7 +147,7 @@ StateUpdateResult WebCustomEntity::update(JsonObject root, WebCustomEntity & web
|
||||
Command::add(
|
||||
EMSdevice::DeviceType::CUSTOM,
|
||||
webCustomEntity.customEntityItems.back().name,
|
||||
[name = std::string(webCustomEntity.customEntityItems.back().name)](const char * value, const int8_t id, JsonObject output) {
|
||||
[name = std::string(webCustomEntity.customEntityItems.back().name)](const char * value, const int8_t id, JsonObject) {
|
||||
return EMSESP::webCustomEntityService.command_setvalue(value, id, name.c_str());
|
||||
},
|
||||
FL_(entity_cmd),
|
||||
@@ -798,7 +798,7 @@ void WebCustomEntityService::load_test_data() {
|
||||
Command::add(
|
||||
EMSdevice::DeviceType::CUSTOM,
|
||||
webCustomEntity.customEntityItems.back().name,
|
||||
[name = std::string(webCustomEntity.customEntityItems.back().name)](const char * value, const int8_t id, JsonObject output) {
|
||||
[name = std::string(webCustomEntity.customEntityItems.back().name)](const char * value, const int8_t id, JsonObject) {
|
||||
return EMSESP::webCustomEntityService.command_setvalue(value, id, name.c_str());
|
||||
},
|
||||
FL_(entity_cmd),
|
||||
@@ -834,7 +834,7 @@ void WebCustomEntityService::load_test_data() {
|
||||
Command::add(
|
||||
EMSdevice::DeviceType::CUSTOM,
|
||||
webCustomEntity.customEntityItems.back().name,
|
||||
[name = std::string(webCustomEntity.customEntityItems.back().name)](const char * value, const int8_t id, JsonObject output) {
|
||||
[name = std::string(webCustomEntity.customEntityItems.back().name)](const char * value, const int8_t id, JsonObject) {
|
||||
return EMSESP::webCustomEntityService.command_setvalue(value, id, name.c_str());
|
||||
},
|
||||
FL_(entity_cmd),
|
||||
@@ -857,7 +857,7 @@ void WebCustomEntityService::load_test_data() {
|
||||
Command::add(
|
||||
EMSdevice::DeviceType::CUSTOM,
|
||||
webCustomEntity.customEntityItems.back().name,
|
||||
[name = std::string(webCustomEntity.customEntityItems.back().name)](const char * value, const int8_t id, JsonObject output) {
|
||||
[name = std::string(webCustomEntity.customEntityItems.back().name)](const char * value, const int8_t id, JsonObject) {
|
||||
return EMSESP::webCustomEntityService.command_setvalue(value, id, name.c_str());
|
||||
},
|
||||
FL_(entity_cmd),
|
||||
|
||||
Reference in New Issue
Block a user