Set up output_switch at priority DATA instead of HARDWARE. (#2648)

This commit is contained in:
Duncan Findlay 2021-11-09 19:12:20 -08:00 committed by GitHub
parent 366552a969
commit 97eaf3d4a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ class OutputSwitch : public switch_::Switch, public Component {
void set_output(BinaryOutput *output) { output_ = output; }
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;
protected: