1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-27 05:03:48 +00:00

[sensor] ESP8266: Use LogString for state_class_to_string() to save RAM (#10617)

This commit is contained in:
J. Nick Koston
2025-09-05 17:51:35 -05:00
committed by GitHub
parent 1340665ac7
commit 5b283d6d38
3 changed files with 15 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ enum StateClass : uint8_t {
STATE_CLASS_TOTAL = 3,
};
const char *state_class_to_string(StateClass state_class);
const LogString *state_class_to_string(StateClass state_class);
/** Base-class for all sensors.
*