mirror of
https://github.com/esphome/esphome.git
synced 2024-12-20 16:18:49 +01:00
Set up output_switch at priority DATA instead of HARDWARE. (#2648)
This commit is contained in:
parent
366552a969
commit
97eaf3d4a1
@ -12,7 +12,7 @@ class OutputSwitch : public switch_::Switch, public Component {
|
|||||||
void set_output(BinaryOutput *output) { output_ = output; }
|
void set_output(BinaryOutput *output) { output_ = output; }
|
||||||
|
|
||||||
void setup() override;
|
void setup() override;
|
||||||
float get_setup_priority() const override { return setup_priority::HARDWARE; }
|
float get_setup_priority() const override { return setup_priority::HARDWARE - 1.0f; }
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user