formatting

This commit is contained in:
proddy
2025-12-22 09:06:27 +01:00
parent 5668fe13ae
commit 09f1c13d28
5 changed files with 9 additions and 10 deletions

View File

@@ -675,7 +675,7 @@ void AnalogSensor::publish_values(const bool force) {
}
return;
} else if (!EMSESP::mqtt_.get_publish_onchange(0)) {
return; // wait for first time periode
return; // wait for first time period
}
}

View File

@@ -78,9 +78,8 @@ uint8_t Roomctrl::get_hc(uint8_t addr) {
} else if (addr >= 0x38 && addr <= 0x3B
&& (type_[addr - 0x38] == RC100H || type_[addr - 0x38] == RC200 || type_[addr - 0x38] == RC100 || type_[addr - 0x38] == RT800
|| type_[addr - 0x38] == RC120RF)) {
return addr - 0x38; // RC100H, RC200
}
else if (addr >= 0x18 && addr <= 0x1B && (type_[addr - 0x18] == RC20 || type_[addr - 0x18] == FB10)) {
return addr - 0x38; // RC100H, RC200
} else if (addr >= 0x18 && addr <= 0x1B && (type_[addr - 0x18] == RC20 || type_[addr - 0x18] == FB10)) {
return addr - 0x18; // RC20, FB10
}
return 0xFF; // invalid

View File

@@ -475,12 +475,12 @@ void TemperatureSensor::publish_values(const bool force) {
if (force) {
if (Mqtt::publish_single()) {
for (const auto & sensor : sensors_) {
publish_sensor(sensor);
}
for (const auto & sensor : sensors_) {
publish_sensor(sensor);
}
return;
} else if (!EMSESP::mqtt_.get_publish_onchange(0)) {
return; // wait for first time periode
return; // wait for first time period
}
}

View File

@@ -389,7 +389,7 @@ void WebCustomEntityService::publish(const bool force) {
}
return;
} else if (!EMSESP::mqtt_.get_publish_onchange(0)) {
return; // wait for first time periode
return; // wait for first time period
}
}

View File

@@ -223,7 +223,7 @@ void WebSchedulerService::publish(const bool force) {
}
return;
} else if (!EMSESP::mqtt_.get_publish_onchange(0)) {
return; // wait for first time periode
return; // wait for first time period
}
}