[pre-commit.ci lite] apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot]
2026-01-15 00:02:35 +00:00
committed by GitHub
parent d27d6d64da
commit 944194e04e
+2 -1
View File
@@ -232,7 +232,8 @@ bool MQTTComponent::send_discovery_() {
#else
const char *fmt = ver_fmt;
#endif
// Buffer sized for format string expansion: ~4 bytes net growth from format specifier to 8 hex digits, plus safety margin
// Buffer sized for format string expansion: ~4 bytes net growth from format specifier to 8 hex digits, plus
// safety margin
char version_buf[sizeof(ver_fmt) + 8];
snprintf(version_buf, sizeof(version_buf), fmt, App.get_config_hash());
device_info[MQTT_DEVICE_SW_VERSION] = version_buf;