mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-27 09:09:25 +03:00
check Mqtt::enabled
This commit is contained in:
@@ -379,7 +379,7 @@ void WebCustomEntityService::publish_single(CustomEntityItem & entity) {
|
||||
|
||||
// publish to Mqtt
|
||||
void WebCustomEntityService::publish(const bool force) {
|
||||
if (!Mqtt::connected() || customEntityItems_->empty()) {
|
||||
if (!Mqtt::enabled() || customEntityItems_->empty()) {
|
||||
return;
|
||||
}
|
||||
if (force) {
|
||||
|
||||
Reference in New Issue
Block a user