change order in "cannot find 'device' in 'command'"

This commit is contained in:
MichaelDvP
2024-07-15 08:56:36 +02:00
parent 4c6d396d70
commit 5b143cd22a
4 changed files with 4 additions and 4 deletions

View File

@@ -711,7 +711,7 @@ bool AnalogSensor::get_value_info(JsonObject output, const char * cmd, const int
} }
} }
return EMSESP::return_not_found(output, "analog sensor", cmd); // not found return EMSESP::return_not_found(output, cmd, F_(analogsensor)); // not found
} }
void AnalogSensor::addSensorJson(JsonObject output, const Sensor & sensor) { void AnalogSensor::addSensorJson(JsonObject output, const Sensor & sensor) {

View File

@@ -408,7 +408,7 @@ bool TemperatureSensor::get_value_info(JsonObject output, const char * cmd, cons
} }
} }
return EMSESP::return_not_found(output, "temperature sensor", cmd); // not found return EMSESP::return_not_found(output, cmd, F_(temperaturesensor)); // not found
} }
void TemperatureSensor::addSensorJson(JsonObject output, const Sensor & sensor) { void TemperatureSensor::addSensorJson(JsonObject output, const Sensor & sensor) {

View File

@@ -334,7 +334,7 @@ bool WebCustomEntityService::get_value_info(JsonObject output, const char * cmd)
} }
} }
return EMSESP::return_not_found(output, "custom entity", cmd); // not found return EMSESP::return_not_found(output, cmd, F_(custom)); // not found
} }
// publish single value // publish single value

View File

@@ -206,7 +206,7 @@ bool WebSchedulerService::get_value_info(JsonObject output, const char * cmd) {
return true; return true;
} }
return EMSESP::return_not_found(output, "schedule", cmd); // not found return EMSESP::return_not_found(output, cmd, F_(scheduler)); // not found
} }
// publish single value // publish single value