[Bugfix] Make sure we can respond something to Prometheus if no sensors are present
This commit is contained in:
parent
53a4a1f9d4
commit
44dc23051f
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user