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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user