check Mqtt::enabled

This commit is contained in:
MichaelDvP
2025-12-21 11:17:31 +01:00
parent f1841347a7
commit 9957bff62b
4 changed files with 4 additions and 4 deletions

View File

@@ -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) {