[Bugfix] Make sure we can respond something to Prometheus if no sensors are present

This commit is contained in:
Gergely Polonkai 2021-01-18 10:42:32 +01:00
parent 53a4a1f9d4
commit 44dc23051f
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -109,7 +109,7 @@ send_metrics()
1;
char message[message_size];
snprintf(message, message_size,
snprintf(message, message_size, ""
#if defined(DHT_TYPE) || defined(HAVE_BMP180)
"# HELP temperature_celsius Temperature in degrees Celsius\n"
"# TYPE temperature_celsius gauge\n"