code optimizations

This commit is contained in:
proddy
2022-03-27 22:47:16 +02:00
parent 3853c6ca18
commit ac7c7cee84
3 changed files with 5 additions and 4 deletions

View File

@@ -609,7 +609,8 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
// toggle mode
for (const auto & emsdevice : EMSESP::emsdevices) {
if (emsdevice->unique_id() == 1) { // boiler
emsdevice->mask_entity("07wwseltemp");
std::string a = "07wwseltemp";
emsdevice->mask_entity(a);
break;
}
}