mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-07 05:13:31 +02:00
[Sprinkler] Initialize timers early to avoid crash (#5499)
This commit is contained in:
@@ -204,12 +204,12 @@ class SprinklerValveRunRequest {
|
||||
|
||||
class Sprinkler : public Component {
|
||||
public:
|
||||
Sprinkler();
|
||||
Sprinkler(const std::string &name);
|
||||
void setup() override;
|
||||
void loop() override;
|
||||
void dump_config() override;
|
||||
|
||||
void set_name(const std::string &name) { this->name_ = name; }
|
||||
|
||||
/// add a valve to the controller
|
||||
void add_valve(SprinklerControllerSwitch *valve_sw, SprinklerControllerSwitch *enable_sw = nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user