1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-28 21:53:48 +00:00

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

This commit is contained in:
J. Nick Koston
2025-09-05 11:32:52 -05:00
parent 86c2af4882
commit 4248cbc596
3 changed files with 14 additions and 8 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.
*