fix mqtt bool output for analog, scheduler

This commit is contained in:
MichaelDvP
2025-12-15 16:48:33 +01:00
parent 2b679daabc
commit 911aa40ca1
3 changed files with 11 additions and 9 deletions

View File

@@ -225,7 +225,7 @@ bool WebCustomEntityService::command_setvalue(const char * value, const int8_t i
// if add_uom is true it will add the UOM string to the value
void WebCustomEntityService::render_value(JsonObject output, CustomEntityItem const & entity, const bool useVal, const bool web, const bool add_uom) {
char payload[20];
const char * name = useVal ? "value" : entity.name;
const char * name = useVal ? "value" : (const char *)entity.name;
switch (entity.value_type) {
case DeviceValueType::BOOL: