mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 03:28:41 +00:00
[sprinkler] Eliminate std::string heap allocations
This commit is contained in:
@@ -504,7 +504,7 @@ class Sprinkler : public Component {
|
||||
uint32_t start_delay_{0};
|
||||
uint32_t stop_delay_{0};
|
||||
|
||||
const char *name_;
|
||||
const char *name_{""};
|
||||
|
||||
/// Sprinkler controller state
|
||||
SprinklerState state_{IDLE};
|
||||
|
||||
Reference in New Issue
Block a user